Class AbstractComponentCollection<T>
- java.lang.Object
-
- org.codehaus.plexus.component.collections.AbstractComponentCollection<T>
-
- Direct Known Subclasses:
ComponentList,ComponentMap
public abstract class AbstractComponentCollection<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,ComponentDescriptor<T>>componentDescriptorMapprotected java.lang.Class<T>componentTypeThe type of the components held by this collectionprotected MutablePlexusContainercontainerThe reference to the PlexusContainerprotected java.lang.StringhostComponentThe component that requires this collection of componentsprotected LoggerloggerUsed to log errors in the component lookup process.private java.util.Collection<org.codehaus.plexus.classworlds.realm.ClassRealm>realmsprotected java.lang.StringroleThe role of the components we are holding in this Collection.protected java.util.List<java.lang.String>roleHintsThe role hint of the components we are holding in this Collection.private java.lang.ClassLoadertcclprivate org.codehaus.plexus.classworlds.ClassWorldworld
-
Constructor Summary
Constructors Constructor Description AbstractComponentCollection(MutablePlexusContainer container, java.lang.Class<T> componentType, java.lang.String role, java.util.List<java.lang.String> roleHints, java.lang.String hostComponent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancheckUpdate()voidclear()protected java.util.Map<java.lang.String,ComponentDescriptor<T>>getComponentDescriptorMap()protected Tlookup(ComponentDescriptor<T> componentDescriptor)private booleanrealmsHaveChanged()protected abstract voidreleaseAllCallback()
-
-
-
Field Detail
-
container
protected MutablePlexusContainer container
The reference to the PlexusContainer
-
componentType
protected final java.lang.Class<T> componentType
The type of the components held by this collection
-
role
protected java.lang.String role
The role of the components we are holding in this Collection.
-
roleHints
protected java.util.List<java.lang.String> roleHints
The role hint of the components we are holding in this Collection.
-
hostComponent
protected java.lang.String hostComponent
The component that requires this collection of components
-
logger
protected Logger logger
Used to log errors in the component lookup process.
-
tccl
private java.lang.ClassLoader tccl
-
realms
private java.util.Collection<org.codehaus.plexus.classworlds.realm.ClassRealm> realms
-
componentDescriptorMap
private java.util.Map<java.lang.String,ComponentDescriptor<T>> componentDescriptorMap
-
world
private final org.codehaus.plexus.classworlds.ClassWorld world
-
-
Constructor Detail
-
AbstractComponentCollection
public AbstractComponentCollection(MutablePlexusContainer container, java.lang.Class<T> componentType, java.lang.String role, java.util.List<java.lang.String> roleHints, java.lang.String hostComponent)
-
-
Method Detail
-
realmsHaveChanged
private boolean realmsHaveChanged()
-
getComponentDescriptorMap
protected java.util.Map<java.lang.String,ComponentDescriptor<T>> getComponentDescriptorMap()
-
checkUpdate
protected boolean checkUpdate()
-
lookup
protected T lookup(ComponentDescriptor<T> componentDescriptor)
-
clear
public void clear()
-
releaseAllCallback
protected abstract void releaseAllCallback()
-
-