org.codehaus.waffle.context.pico
Class PicoContextContainer

java.lang.Object
  extended by org.codehaus.waffle.context.pico.PicoContextContainer
All Implemented Interfaces:
java.io.Serializable, ContextContainer, Startable

public class PicoContextContainer
extends java.lang.Object
implements ContextContainer

See Also:
Serialized Form

Constructor Summary
PicoContextContainer()
           
PicoContextContainer(org.picocontainer.MutablePicoContainer delegate)
           
PicoContextContainer(org.picocontainer.MutablePicoContainer delegate, MessageResources messageResources)
           
 
Method Summary
 void dispose()
           
<T> java.util.Collection<T>
getAllComponentInstancesOfType(java.lang.Class<T> type)
           
<T> T
getComponent(java.lang.Class<T> type)
           
 java.lang.Object getComponentInstance(java.lang.Object key)
           
 org.picocontainer.MutablePicoContainer getDelegate()
           
 void registerComponentInstance(java.lang.Object instance)
           
 void start()
          Start this component.
 void stop()
          Stop this component.
 void validateComponentInstances()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicoContextContainer

public PicoContextContainer()

PicoContextContainer

public PicoContextContainer(org.picocontainer.MutablePicoContainer delegate)

PicoContextContainer

public PicoContextContainer(org.picocontainer.MutablePicoContainer delegate,
                            MessageResources messageResources)
Method Detail

registerComponentInstance

public void registerComponentInstance(java.lang.Object instance)
Specified by:
registerComponentInstance in interface ContextContainer

start

public void start()
Description copied from interface: Startable
Start this component. This is executed when the context (Application, Session or Request) is initialized.

Specified by:
start in interface Startable

stop

public void stop()
Description copied from interface: Startable
Stop this component. This is executed when the context (Application, Session or Request) is destroyed.

Specified by:
stop in interface Startable

dispose

public void dispose()
Specified by:
dispose in interface ContextContainer

getComponentInstance

public java.lang.Object getComponentInstance(java.lang.Object key)
Specified by:
getComponentInstance in interface ContextContainer

getComponent

public <T> T getComponent(java.lang.Class<T> type)
Specified by:
getComponent in interface ContextContainer

getAllComponentInstancesOfType

public <T> java.util.Collection<T> getAllComponentInstancesOfType(java.lang.Class<T> type)
Specified by:
getAllComponentInstancesOfType in interface ContextContainer

validateComponentInstances

public void validateComponentInstances()
Specified by:
validateComponentInstances in interface ContextContainer

getDelegate

public org.picocontainer.MutablePicoContainer getDelegate()
Specified by:
getDelegate in interface ContextContainer


Copyright © 2008. All Rights Reserved.