@Override public String getName() { return (getComponent() != null) ? "Terminate " + getComponent().getComponentName() : "Terminate"; }
@Override public void addTerminateStep(ILifecycleComponent owner, ILifecycleComponent component) { addStep(new TerminateComponentLifecycleStep(owner, component)); }
@Override public void execute(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (getComponent() != null) { try { getComponent().lifecycleTerminate(monitor); } catch (Throwable t) { throw new SiteWhereException("Unhandled exception terminating component.", t); } } } }