@Test public void testDestroy() { tested.destroy(); verify(profileInstances, times(1)).destroy(eq(profile1)); verify(profileInstances, times(1)).destroy(eq(profile2)); }
@PreDestroy public void destroy() { profileInstances.forEach(profileInstances::destroy); }
BackendProfileManager extends AbstractProfileManager { @PreDestroy public void destroy() { profileInstances.forEach(profileInstances::destroy); } }
BackendProfileManager extends AbstractProfileManager { @PreDestroy public void destroy() { profileInstances.forEach(profileInstances::destroy); } @Inject  BackendProfileManager(final DefinitionUtils definitionUtils,
                                 final @Any Instance<Profile> profileInstances); }
BackendProfileManager extends AbstractProfileManager { @PreDestroy public void destroy() { profileInstances.forEach(profileInstances::destroy); } @Inject  BackendProfileManager(final DefinitionUtils definitionUtils,
                                 final @Any Instance<Profile> profileInstances); @PreDestroy void destroy(); }
BackendProfileManager extends AbstractProfileManager { @PreDestroy public void destroy() { profileInstances.forEach(profileInstances::destroy); } @Inject  BackendProfileManager(final DefinitionUtils definitionUtils,
                                 final @Any Instance<Profile> profileInstances); @PreDestroy void destroy();  }