@Test public void register() { final HibernateSearchDependentObjectsReindexer reindexer = new HibernateSearchDependentObjectsReindexer(); reindexer.map.clear(); reindexer.register(TaskDO.class); final List<HibernateSearchDependentObjectsReindexer.Entry> list = reindexer.map.get(PFUserDO.class); assertEquals(1, reindexer.map.size()); assertEquals(1, list.size()); assertEntry(list.get(0), TaskDO.class, "responsibleUser"); reindexer.register(GroupDO.class); assertEquals(1, reindexer.map.size()); assertEquals(2, list.size()); assertEntry(list.get(1), GroupDO.class, "assignedUsers"); reindexer.register(UserPrefDO.class); assertEquals(1, reindexer.map.size()); assertEquals(3, list.size()); assertEntry(list.get(2), UserPrefDO.class, "user"); }
void register(final RegistryEntry registryEntry) { final Class<? extends BaseDO<?>> clazz = registryEntry.getDOClass(); register(clazz); }
HibernateSearchDependentObjectsReindexer { void register(final RegistryEntry registryEntry) { final Class<? extends BaseDO<?>> clazz = registryEntry.getDOClass(); register(clazz); } }
HibernateSearchDependentObjectsReindexer { void register(final RegistryEntry registryEntry) { final Class<? extends BaseDO<?>> clazz = registryEntry.getDOClass(); register(clazz); }  }
HibernateSearchDependentObjectsReindexer { void register(final RegistryEntry registryEntry) { final Class<? extends BaseDO<?>> clazz = registryEntry.getDOClass(); register(clazz); }  @PostConstruct void init(); void reindexDependents(final BaseDO<?> obj); }
HibernateSearchDependentObjectsReindexer { void register(final RegistryEntry registryEntry) { final Class<? extends BaseDO<?>> clazz = registryEntry.getDOClass(); register(clazz); }  @PostConstruct void init(); void reindexDependents(final BaseDO<?> obj);  }