org.nanocontainer.nanowar.chain
Class ContainerChain

java.lang.Object
  extended by org.nanocontainer.nanowar.chain.ContainerChain
All Implemented Interfaces:
org.picocontainer.Startable

public class ContainerChain
extends Object
implements org.picocontainer.Startable

Represents chain of containers, which can be started and stopped at once.

Author:
Konstantin Pribluda

Constructor Summary
ContainerChain()
           
 
Method Summary
 void addContainer(org.picocontainer.PicoContainer container)
          add new container to the end of chain.
 org.picocontainer.PicoContainer getLast()
          Returns last container in chain.
 void start()
          start each container in the chain
 void stop()
          stop each container in the chain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerChain

public ContainerChain()
Method Detail

getLast

public org.picocontainer.PicoContainer getLast()
Returns last container in chain.

Returns:
last container in chain or null

addContainer

public void addContainer(org.picocontainer.PicoContainer container)
add new container to the end of chain.

Parameters:
container -

start

public void start()
start each container in the chain

Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
stop each container in the chain

Specified by:
stop in interface org.picocontainer.Startable


Copyright © 2003-2009 Codehaus. All Rights Reserved.