@Test public void testGetServiceClass() throws Exception { List<ResourceConfig> resourceConfigs = getResourceConfigs(); Assert.assertEquals(2, resourceConfigs.size()); Assert.assertTrue(resourceConfigs.get(0).getResourceClass(getClass().getClassLoader()).equals(ViewConfigTest.MyResource.class)); Assert.assertTrue(resourceConfigs.get(1).getResourceClass(getClass().getClassLoader()).equals(ViewConfigTest.MyResource.class)); }
public Class<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException { if (serviceClass == null) { serviceClass = cl.loadClass(service); } return serviceClass; }
ResourceConfig { public Class<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException { if (serviceClass == null) { serviceClass = cl.loadClass(service); } return serviceClass; } }
ResourceConfig { public Class<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException { if (serviceClass == null) { serviceClass = cl.loadClass(service); } return serviceClass; }  }
ResourceConfig { public Class<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException { if (serviceClass == null) { serviceClass = cl.loadClass(service); } return serviceClass; }  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<?> getServiceClass(ClassLoader cl) throws ClassNotFoundException { if (serviceClass == null) { serviceClass = cl.loadClass(service); } return serviceClass; }  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; }