@Test public void testGetResourceClass() throws Exception { List<ResourceConfig> resourceConfigs = getResourceConfigs(); Assert.assertEquals(2, resourceConfigs.size()); Assert.assertTrue(resourceConfigs.get(0).getServiceClass(getClass().getClassLoader()).equals(ViewConfigTest.MyResourceService.class)); Assert.assertTrue(resourceConfigs.get(1).getServiceClass(getClass().getClassLoader()).equals(ViewConfigTest.MyResourceService.class)); }
public Class<?> getResourceClass(ClassLoader cl) throws ClassNotFoundException { if (resourceClass == null) { resourceClass = cl.loadClass(resource); } return resourceClass; }
ResourceConfig { public Class<?> getResourceClass(ClassLoader cl) throws ClassNotFoundException { if (resourceClass == null) { resourceClass = cl.loadClass(resource); } return resourceClass; } }
ResourceConfig { public Class<?> getResourceClass(ClassLoader cl) throws ClassNotFoundException { if (resourceClass == null) { resourceClass = cl.loadClass(resource); } return resourceClass; }  }
ResourceConfig { public Class<?> getResourceClass(ClassLoader cl) throws ClassNotFoundException { if (resourceClass == null) { resourceClass = cl.loadClass(resource); } return resourceClass; }  String getName(); String getPluralName(); String getIdProperty(); List<String> getSubResourceNames(); String getProvider(); String getService(); String getResource(); Class<? extends ResourceProvider> getProviderClass(ClassLoader cl); Class<?> getServiceClass(ClassLoader cl); Class<?> getResourceClass(ClassLoader cl); boolean isExternal(); }
ResourceConfig { public Class<?> getResourceClass(ClassLoader cl) throws ClassNotFoundException { if (resourceClass == null) { resourceClass = cl.loadClass(resource); } return resourceClass; }  String getName(); String getPluralName(); String getIdProperty(); List<String> getSubResourceNames(); String getProvider(); String getService(); String getResource(); Class<? extends ResourceProvider> getProviderClass(ClassLoader cl); Class<?> getServiceClass(ClassLoader cl); Class<?> getResourceClass(ClassLoader cl); boolean isExternal(); static final String EXTERNAL_RESOURCE_PLURAL_NAME; }