@Test public void testDestroy() { tested.destroy(); verify(morphNodeActionDestroyer, times(1)).execute(); verify(viewDestroyer, times(1)).execute(); }
@PreDestroy public void destroy() { morphNodeActionsDestroyer.execute(); viewsDestroyer.execute(); }
MorphActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { morphNodeActionsDestroyer.execute(); viewsDestroyer.execute(); } }
MorphActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { morphNodeActionsDestroyer.execute(); viewsDestroyer.execute(); } @Inject  MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                      final DomainProfileManager profileManager,
                                      final @Any ManagedInstance<MorphNodeToolboxAction> morphNodeActions,
                                      final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxView> views);   MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                               final DomainProfileManager profileManager,
                               final Supplier<MorphNodeToolboxAction> morphNodeActions,
                               final Command morphNodeActionsDestroyer,
                               final Supplier<ActionsToolboxView> views,
                               final Command viewsDestroyer); }
MorphActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { morphNodeActionsDestroyer.execute(); viewsDestroyer.execute(); } @Inject  MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                      final DomainProfileManager profileManager,
                                      final @Any ManagedInstance<MorphNodeToolboxAction> morphNodeActions,
                                      final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxView> views);   MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                               final DomainProfileManager profileManager,
                               final Supplier<MorphNodeToolboxAction> morphNodeActions,
                               final Command morphNodeActionsDestroyer,
                               final Supplier<ActionsToolboxView> views,
                               final Command viewsDestroyer); @Override @SuppressWarnings("unchecked") Collection<ToolboxAction<AbstractCanvasHandler>> getActions(final AbstractCanvasHandler canvasHandler,
                                                                       final Element<?> e); @PreDestroy void destroy(); }
MorphActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { morphNodeActionsDestroyer.execute(); viewsDestroyer.execute(); } @Inject  MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                      final DomainProfileManager profileManager,
                                      final @Any ManagedInstance<MorphNodeToolboxAction> morphNodeActions,
                                      final @Any @MorphActionsToolbox ManagedInstance<ActionsToolboxView> views);   MorphActionsToolboxFactory(final DefinitionUtils definitionUtils,
                               final DomainProfileManager profileManager,
                               final Supplier<MorphNodeToolboxAction> morphNodeActions,
                               final Command morphNodeActionsDestroyer,
                               final Supplier<ActionsToolboxView> views,
                               final Command viewsDestroyer); @Override @SuppressWarnings("unchecked") Collection<ToolboxAction<AbstractCanvasHandler>> getActions(final AbstractCanvasHandler canvasHandler,
                                                                       final Element<?> e); @PreDestroy void destroy();  }