Class AbstractComponentCollection<T>
- java.lang.Object
-
- org.codehaus.plexus.component.collections.AbstractComponentCollection<T>
-
- Direct Known Subclasses:
ComponentList
,ComponentMap
public abstract class AbstractComponentCollection<T> extends Object
- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<T>
componentType
The type of the components held by this collectionprotected MutablePlexusContainer
container
The reference to the PlexusContainerprotected String
hostComponent
The component that requires this collection of componentsprotected Logger
logger
Used to log errors in the component lookup process.protected String
role
The role of the components we are holding in this Collection.protected List<String>
roleHints
The role hint of the components we are holding in this Collection.
-
Constructor Summary
Constructors Constructor Description AbstractComponentCollection(MutablePlexusContainer container, Class<T> componentType, String role, List<String> roleHints, String hostComponent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
checkUpdate()
void
clear()
protected Map<String,ComponentDescriptor<T>>
getComponentDescriptorMap()
protected T
lookup(ComponentDescriptor<T> componentDescriptor)
protected abstract void
releaseAllCallback()
-
-
-
Field Detail
-
container
protected MutablePlexusContainer container
The reference to the PlexusContainer
-
componentType
protected final Class<T> componentType
The type of the components held by this collection
-
role
protected String role
The role of the components we are holding in this Collection.
-
roleHints
protected List<String> roleHints
The role hint of the components we are holding in this Collection.
-
hostComponent
protected String hostComponent
The component that requires this collection of components
-
logger
protected Logger logger
Used to log errors in the component lookup process.
-
-
Method Detail
-
getComponentDescriptorMap
protected Map<String,ComponentDescriptor<T>> getComponentDescriptorMap()
-
checkUpdate
protected boolean checkUpdate()
-
lookup
protected T lookup(ComponentDescriptor<T> componentDescriptor)
-
clear
public void clear()
-
releaseAllCallback
protected abstract void releaseAllCallback()
-
-