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