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)
           
 
Method Summary
 void dispose()
           
<T> java.util.Collection<T>
getAllComponentInstancesOfType(java.lang.Class<T> type)
           
 java.lang.Object getComponentInstance(java.lang.Object key)
           
<T> T
getComponentInstanceOfType(java.lang.Class<T> type)
           
 org.picocontainer.MutablePicoContainer getDelegate()
           
 void registerComponentInstance(java.lang.Object instance)
           
 void start()
           
 void stop()
           
 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)
Method Detail

registerComponentInstance

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

start

public void start()
Specified by:
start in interface Startable

stop

public void stop()
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

getComponentInstanceOfType

public <T> T getComponentInstanceOfType(java.lang.Class<T> type)
Specified by:
getComponentInstanceOfType 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.