@Test public void testCreate() throws Exception { DomainMapper mapper = DomainMapper.create(Arrays.asList("com.nitorcreations.testdomain")); assertThat(mapper.getClasses(), hasItems(Timesheet.class, Task.class, Person.class, Manager.class, Employee.class)); }
public static DomainMapper create(List<String> packages, URLClassLoader classLoader) throws ClassNotFoundException { List<Class<?>> allClasses = DomainClassFinder.findClasses(packages, classLoader); log.debug("Found " + allClasses.size() + " classes."); return new DomainMapper(allClasses); }
DomainMapper { public static DomainMapper create(List<String> packages, URLClassLoader classLoader) throws ClassNotFoundException { List<Class<?>> allClasses = DomainClassFinder.findClasses(packages, classLoader); log.debug("Found " + allClasses.size() + " classes."); return new DomainMapper(allClasses); } }
DomainMapper { public static DomainMapper create(List<String> packages, URLClassLoader classLoader) throws ClassNotFoundException { List<Class<?>> allClasses = DomainClassFinder.findClasses(packages, classLoader); log.debug("Found " + allClasses.size() + " classes."); return new DomainMapper(allClasses); } DomainMapper(final List<Class<?>> classes); }
DomainMapper { public static DomainMapper create(List<String> packages, URLClassLoader classLoader) throws ClassNotFoundException { List<Class<?>> allClasses = DomainClassFinder.findClasses(packages, classLoader); log.debug("Found " + allClasses.size() + " classes."); return new DomainMapper(allClasses); } DomainMapper(final List<Class<?>> classes); String describeDomain(); List<Class<?>> getClasses(); static DomainMapper create(List<String> packages, URLClassLoader classLoader); static DomainMapper create(final List<String> packages); }
DomainMapper { public static DomainMapper create(List<String> packages, URLClassLoader classLoader) throws ClassNotFoundException { List<Class<?>> allClasses = DomainClassFinder.findClasses(packages, classLoader); log.debug("Found " + allClasses.size() + " classes."); return new DomainMapper(allClasses); } DomainMapper(final List<Class<?>> classes); String describeDomain(); List<Class<?>> getClasses(); static DomainMapper create(List<String> packages, URLClassLoader classLoader); static DomainMapper create(final List<String> packages);  }