picocontainer.defaults
Class NullContainer

java.lang.Object
  extended bypicocontainer.defaults.NullContainer
All Implemented Interfaces:
PicoContainer

public class NullContainer
extends Object
implements PicoContainer


Constructor Summary
NullContainer()
           
 
Method Summary
 Object getComponent(Class compType)
          Get a component for a component type.
 Object[] getComponents()
          Get all components (random order).
 Class[] getComponentTypes()
          Get all component types (random order).
 boolean hasComponent(Class compType)
          Does the container have a partilcilar component type?
 void instantiateComponents()
          Initialize the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullContainer

public NullContainer()
Method Detail

hasComponent

public boolean hasComponent(Class compType)
Description copied from interface: PicoContainer
Does the container have a partilcilar component type?

Specified by:
hasComponent in interface PicoContainer
Parameters:
compType - The component type to look for.
Returns:
true if it does have the component type

getComponent

public Object getComponent(Class compType)
Description copied from interface: PicoContainer
Get a component for a component type.

Specified by:
getComponent in interface PicoContainer
Parameters:
compType - The component type to look for.
Returns:
the component, or null of no such component.

getComponents

public Object[] getComponents()
Description copied from interface: PicoContainer
Get all components (random order).

Specified by:
getComponents in interface PicoContainer
Returns:
An array of components.

getComponentTypes

public Class[] getComponentTypes()
Description copied from interface: PicoContainer
Get all component types (random order).

Specified by:
getComponentTypes in interface PicoContainer
Returns:
an array of component types.

instantiateComponents

public void instantiateComponents()
                           throws PicoInstantiationException
Description copied from interface: PicoContainer
Initialize the container.

Specified by:
instantiateComponents in interface PicoContainer
Throws:
PicoInstantiationException


Copyright © 2003 Codehaus. All Rights Reserved.