@Test public void testDestroy() { tested.execute(metadata); assertFalse(registry.isEmpty()); tested.destroy(); assertTrue(registry.isEmpty()); }
@PreDestroy public void destroy() { registry.destroy(); }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } @SuppressWarnings("all") protected  WorkItemDefinitionProjectService(); @Inject  WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry,
                                            final WorkItemDefinitionVFSLookupService vfsService,
                                            final WorkItemDefinitionDeployServices deployServices);   WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry,
                                     final WorkItemDefinitionVFSLookupService vfsService,
                                     final WorkItemDefinitionDeployServices deployServices,
                                     final BiPredicate<Metadata, Collection<WorkItemDefinition>> deployPredicate); }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } @SuppressWarnings("all") protected  WorkItemDefinitionProjectService(); @Inject  WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry,
                                            final WorkItemDefinitionVFSLookupService vfsService,
                                            final WorkItemDefinitionDeployServices deployServices);   WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry,
                                     final WorkItemDefinitionVFSLookupService vfsService,
                                     final WorkItemDefinitionDeployServices deployServices,
                                     final BiPredicate<Metadata, Collection<WorkItemDefinition>> deployPredicate); @Produces @Default WorkItemDefinitionRegistry getRegistry(); @Override Collection<WorkItemDefinition> execute(final Metadata metadata); @PreDestroy void destroy(); }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } @SuppressWarnings("all") protected  WorkItemDefinitionProjectService(); @Inject  WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry,
                                            final WorkItemDefinitionVFSLookupService vfsService,
                                            final WorkItemDefinitionDeployServices deployServices);   WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry,
                                     final WorkItemDefinitionVFSLookupService vfsService,
                                     final WorkItemDefinitionDeployServices deployServices,
                                     final BiPredicate<Metadata, Collection<WorkItemDefinition>> deployPredicate); @Produces @Default WorkItemDefinitionRegistry getRegistry(); @Override Collection<WorkItemDefinition> execute(final Metadata metadata); @PreDestroy void destroy();  }