org.picocontainer.internals
Interface ComponentRegistry

All Known Implementing Classes:
DefaultComponentRegistry, HierarchicalComponentRegistry

public interface ComponentRegistry


Method Summary
 void addOrderedComponent(Object component)
           
 boolean contains(Object componentKey)
           
 Object createComponent(ComponentSpecification componentSpecification)
           
 Object findImplementingComponent(Class componentType)
           
 ComponentSpecification findImplementingComponentSpecification(Class componentType)
           
 Object getComponentInstance(Object componentKey)
           
 Set getComponentInstanceKeys()
           
 Set getComponentInstances()
           
 ComponentSpecification getComponentSpec(Object componentKey)
           
 Collection getComponentSpecifications()
           
 List getOrderedComponents()
           
 boolean hasComponentInstance(Object componentKey)
           
 void putComponent(Object componentKey, Object component)
           
 void registerComponent(ComponentSpecification compSpec)
           
 void unregisterComponent(Object componentKey)
           
 

Method Detail

registerComponent

public void registerComponent(ComponentSpecification compSpec)

getComponentSpecifications

public Collection getComponentSpecifications()

getOrderedComponents

public List getOrderedComponents()

addOrderedComponent

public void addOrderedComponent(Object component)

putComponent

public void putComponent(Object componentKey,
                         Object component)

contains

public boolean contains(Object componentKey)

getComponentInstance

public Object getComponentInstance(Object componentKey)

getComponentInstanceKeys

public Set getComponentInstanceKeys()

getComponentInstances

public Set getComponentInstances()

hasComponentInstance

public boolean hasComponentInstance(Object componentKey)

getComponentSpec

public ComponentSpecification getComponentSpec(Object componentKey)

findImplementingComponent

public Object findImplementingComponent(Class componentType)
                                 throws AmbiguousComponentResolutionException
Throws:
AmbiguousComponentResolutionException

findImplementingComponentSpecification

public ComponentSpecification findImplementingComponentSpecification(Class componentType)
                                                              throws AmbiguousComponentResolutionException
Throws:
AmbiguousComponentResolutionException

createComponent

public Object createComponent(ComponentSpecification componentSpecification)
                       throws PicoInitializationException
Throws:
PicoInitializationException

unregisterComponent

public void unregisterComponent(Object componentKey)


Copyright © 2003 Codehaus. All Rights Reserved.