public void start(Object component) { lifecycleStrategy.start(component); }
/** * Start the components of this PicoContainer and all its logical child * containers. Any component implementing the lifecycle interface * {@link org.picocontainer.Startable} will be started. * * @see #makeChildContainer() * @see #addChildContainer(PicoContainer) * @see #removeChildContainer(PicoContainer) */ public void start() { if (disposed) throw new IllegalStateException("Already disposed"); if (started) throw new IllegalStateException("Already started"); started = true; Collection<ComponentAdapter> adapters = getComponentAdapters(); for (ComponentAdapter componentAdapter : adapters) { if (componentAdapter instanceof LifecycleStrategy) { ((LifecycleStrategy) componentAdapter).start(getInstance(componentAdapter)); } } childrenStarted.clear(); for (Iterator iterator = children.iterator(); iterator.hasNext();) { PicoContainer child = (PicoContainer) iterator.next(); childrenStarted.add(new Integer(child.hashCode())); child.start(); } }
/** * Invokes delegate start method if the delegate is a LifecycleStrategy * {@inheritDoc} */ public void start(Object component) { if ( delegate instanceof LifecycleStrategy ){ ((LifecycleStrategy)delegate).start(component); } }
public void start(Object component) { lifecycleStrategy.start(componentInstance); }
public void start(Object component) { lifecycleStrategy.start(component); }