@Override public void startNestedComponent(ILifecycleComponent component, ILifecycleProgressMonitor monitor, String errorMessage, boolean require) throws SiteWhereException { delegate.startNestedComponent(component, monitor, errorMessage, require); }
@Override public void startNestedComponent(ILifecycleComponent component, ILifecycleProgressMonitor monitor, boolean require) throws SiteWhereException { getDelegate().startNestedComponent(component, monitor, require); }
@Override public void execute(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (getComponent() != null) { getOwner().startNestedComponent(getComponent(), monitor, getErrorMessage(), isRequire()); } else { throw new SiteWhereException("Attempting to start component '" + getName() + "' but component is null."); } }
@Override public void execute(ILifecycleProgressMonitor monitor) throws SiteWhereException { if (getComponent() != null) { try { getOwner().startNestedComponent(getComponent(), monitor, isRequire()); } catch (SiteWhereException t) { throw t; } catch (Throwable t) { throw new SiteWhereException("Unable to start " + getComponent().getComponentName(), t); } } else { throw new SiteWhereException( "Attempting to start component '" + getComponent().getComponentName() + "' but component is null."); } }