Package org.codehaus.plexus.collections
Class DefaultProtoCollection
- java.lang.Object
-
- org.codehaus.plexus.collections.DefaultProtoCollection
-
- All Implemented Interfaces:
ProtoCollection,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class DefaultProtoCollection extends java.lang.Object implements ProtoCollection, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.PlexusContainercontainerprivate java.lang.Stringrole-
Fields inherited from interface org.codehaus.plexus.collections.ProtoCollection
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultProtoCollection()DefaultProtoCollection(org.codehaus.plexus.PlexusContainer container, java.lang.String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextualize(org.codehaus.plexus.context.Context context)ActiveListgetActiveList()Retrieve anActiveListinstance that contains components matching the role given byProtoCollection.getCollectedRole().ActiveMapgetActiveMap()Retrieve anActiveMapinstance that contains components matching the role given byProtoCollection.getCollectedRole().ActiveSetgetActiveSet()Retrieve anActiveSetinstance that contains components matching the role given byProtoCollection.getCollectedRole().java.lang.StringgetCollectedRole()Retrieve the role of components to be collected by any of the active collections created here.
-
-
-
Method Detail
-
getActiveList
public ActiveList getActiveList()
Description copied from interface:ProtoCollectionRetrieve anActiveListinstance that contains components matching the role given byProtoCollection.getCollectedRole().- Specified by:
getActiveListin interfaceProtoCollection
-
getActiveMap
public ActiveMap getActiveMap()
Description copied from interface:ProtoCollectionRetrieve anActiveMapinstance that contains components matching the role given byProtoCollection.getCollectedRole().- Specified by:
getActiveMapin interfaceProtoCollection
-
getActiveSet
public ActiveSet getActiveSet()
Description copied from interface:ProtoCollectionRetrieve anActiveSetinstance that contains components matching the role given byProtoCollection.getCollectedRole().- Specified by:
getActiveSetin interfaceProtoCollection
-
getCollectedRole
public java.lang.String getCollectedRole()
Description copied from interface:ProtoCollectionRetrieve the role of components to be collected by any of the active collections created here.- Specified by:
getCollectedRolein interfaceProtoCollection
-
contextualize
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException- Specified by:
contextualizein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable- Throws:
org.codehaus.plexus.context.ContextException
-
-