@Test public void testDestroy() { tested.destroy(); verify(flowActionsToolboxFactory, times(1)).destroyAll(); verify(morphActionsToolboxFactory, times(1)).destroyAll(); verify(commonActionsToolboxFactory, times(1)).destroyAll(); }
@PreDestroy @Override public void destroy() { super.destroy(); flowActionsToolboxFactories.destroyAll(); morphActionsToolboxFactories.destroyAll(); commonActionsToolboxFactories.destroyAll(); }
DefaultToolboxControl extends AbstractToolboxControl { @PreDestroy @Override public void destroy() { super.destroy(); flowActionsToolboxFactories.destroyAll(); morphActionsToolboxFactories.destroyAll(); commonActionsToolboxFactories.destroyAll(); } }
DefaultToolboxControl extends AbstractToolboxControl { @PreDestroy @Override public void destroy() { super.destroy(); flowActionsToolboxFactories.destroyAll(); morphActionsToolboxFactories.destroyAll(); commonActionsToolboxFactories.destroyAll(); } @Inject  DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                                 final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                                 final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories);   DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                          final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                          final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories,
                          final ToolboxControlImpl<ActionsToolboxFactory> toolboxControl); }
DefaultToolboxControl extends AbstractToolboxControl { @PreDestroy @Override public void destroy() { super.destroy(); flowActionsToolboxFactories.destroyAll(); morphActionsToolboxFactories.destroyAll(); commonActionsToolboxFactories.destroyAll(); } @Inject  DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                                 final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                                 final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories);   DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                          final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                          final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories,
                          final ToolboxControlImpl<ActionsToolboxFactory> toolboxControl); @PreDestroy @Override void destroy(); }
DefaultToolboxControl extends AbstractToolboxControl { @PreDestroy @Override public void destroy() { super.destroy(); flowActionsToolboxFactories.destroyAll(); morphActionsToolboxFactories.destroyAll(); commonActionsToolboxFactories.destroyAll(); } @Inject  DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                                 final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                                 final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories);   DefaultToolboxControl(final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxFactory> flowActionsToolboxFactories,
                          final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxFactory> morphActionsToolboxFactories,
                          final @Any @CommonActionsToolbox ManagedInstance<ActionsToolboxFactory> commonActionsToolboxFactories,
                          final ToolboxControlImpl<ActionsToolboxFactory> toolboxControl); @PreDestroy @Override void destroy();  }