org.codehaus.waffle.context.pico
Class PicoContextContainer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PicoContextContainer
public PicoContextContainer()
PicoContextContainer
public PicoContextContainer(org.picocontainer.MutablePicoContainer delegate)
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
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.