org.picocontainer.internals
Interface ComponentRegistry
- All Known Implementing Classes:
- DefaultComponentRegistry, HierarchicalComponentRegistry
- public interface ComponentRegistry
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.