@Test public void testDestroy() { call(); assertEquals(6, registry.items().size()); tested.destroy(); assertEquals(registry, tested.getRegistry()); assertTrue(registry.items().isEmpty()); }
@PreDestroy public void destroy() { registry.clear(); loader = null; }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { @PreDestroy public void destroy() { registry.clear(); loader = null; } }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { @PreDestroy public void destroy() { registry.clear(); loader = null; } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { @PreDestroy public void destroy() { registry.clear(); loader = null; } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); @PostConstruct void init(); @Produces @Default @Override WorkItemDefinitionRegistry getRegistry(); @Override Promise<Collection<WorkItemDefinition>> call(final Metadata input); @PreDestroy void destroy(); }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { @PreDestroy public void destroy() { registry.clear(); loader = null; } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); @PostConstruct void init(); @Produces @Default @Override WorkItemDefinitionRegistry getRegistry(); @Override Promise<Collection<WorkItemDefinition>> call(final Metadata input); @PreDestroy void destroy();  }