org.codehaus.plexus.component.collections
public abstract class AbstractComponentCollection<T> extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<T> |
componentType
The type of the components held by this collection
|
protected MutablePlexusContainer |
container
The reference to the PlexusContainer
|
protected java.lang.String |
hostComponent
The component that requires this collection of components
|
protected Logger |
logger
Used to log errors in the component lookup process.
|
protected java.lang.String |
role
The role of the components we are holding in this Collection.
|
protected java.util.List<java.lang.String> |
roleHints
The role hint of the components we are holding in this Collection.
|
Constructor and Description |
---|
AbstractComponentCollection(MutablePlexusContainer container,
java.lang.Class<T> componentType,
java.lang.String role,
java.util.List<java.lang.String> roleHints,
java.lang.String hostComponent) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkUpdate() |
void |
clear() |
protected java.util.Map<java.lang.String,ComponentDescriptor<T>> |
getComponentDescriptorMap() |
protected T |
lookup(ComponentDescriptor<T> componentDescriptor) |
protected abstract void |
releaseAllCallback() |
protected MutablePlexusContainer container
protected final java.lang.Class<T> componentType
protected java.lang.String role
protected java.util.List<java.lang.String> roleHints
protected java.lang.String hostComponent
protected Logger logger
public AbstractComponentCollection(MutablePlexusContainer container, java.lang.Class<T> componentType, java.lang.String role, java.util.List<java.lang.String> roleHints, java.lang.String hostComponent)
protected java.util.Map<java.lang.String,ComponentDescriptor<T>> getComponentDescriptorMap()
protected boolean checkUpdate()
protected T lookup(ComponentDescriptor<T> componentDescriptor)
public void clear()
protected abstract void releaseAllCallback()