@Test public void testDestroy() { tested.destroy(); verify(createConnectorActions, times(1)).destroyAll(); verify(createNodeActions, times(1)).destroyAll(); verify(views, times(1)).destroyAll(); }
@PreDestroy public void destroy() { createConnectorActions.destroyAll(); createNodeActions.destroyAll(); views.destroyAll(); }
FlowActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { createConnectorActions.destroyAll(); createNodeActions.destroyAll(); views.destroyAll(); } }
FlowActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { createConnectorActions.destroyAll(); createNodeActions.destroyAll(); views.destroyAll(); } @Inject  FlowActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                     final ToolboxDomainLookups toolboxDomainLookups,
                                     final DomainProfileManager profileManager,
                                     final @Any ManagedInstance<CreateConnectorToolboxAction> createConnectorActions,
                                     final @Any @FlowActionsToolbox ManagedInstance<CreateNodeToolboxAction> createNodeActions,
                                     final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxView> views); }
FlowActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { createConnectorActions.destroyAll(); createNodeActions.destroyAll(); views.destroyAll(); } @Inject  FlowActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                     final ToolboxDomainLookups toolboxDomainLookups,
                                     final DomainProfileManager profileManager,
                                     final @Any ManagedInstance<CreateConnectorToolboxAction> createConnectorActions,
                                     final @Any @FlowActionsToolbox ManagedInstance<CreateNodeToolboxAction> createNodeActions,
                                     final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxView> views); @Override @SuppressWarnings("unchecked") Collection<ToolboxAction<AbstractCanvasHandler>> getActions(final AbstractCanvasHandler canvasHandler,
                                                                       final Element<?> element); @PreDestroy void destroy(); }
FlowActionsToolboxFactory extends AbstractActionsToolboxFactory { @PreDestroy public void destroy() { createConnectorActions.destroyAll(); createNodeActions.destroyAll(); views.destroyAll(); } @Inject  FlowActionsToolboxFactory(final DefinitionUtils definitionUtils,
                                     final ToolboxDomainLookups toolboxDomainLookups,
                                     final DomainProfileManager profileManager,
                                     final @Any ManagedInstance<CreateConnectorToolboxAction> createConnectorActions,
                                     final @Any @FlowActionsToolbox ManagedInstance<CreateNodeToolboxAction> createNodeActions,
                                     final @Any @FlowActionsToolbox ManagedInstance<ActionsToolboxView> views); @Override @SuppressWarnings("unchecked") Collection<ToolboxAction<AbstractCanvasHandler>> getActions(final AbstractCanvasHandler canvasHandler,
                                                                       final Element<?> element); @PreDestroy void destroy();  }