Package org.codehaus.plexus.collections
Interface ProtoCollection
-
- All Known Implementing Classes:
DefaultProtoCollection
public interface ProtoCollectionRepresents an undifferentiated ActiveCollection instance, with the same configuration (role). This is another workaround for applications that use plexus-container-default versions less than 1.0-alpha-22, since this proto-collection can be injected without causing conflict with the existing collection-detection code in the container. Dependent components can then call getActiveMap|List|Set and retrieve the instance, which has been preconfigured.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActiveListgetActiveList()Retrieve anActiveListinstance that contains components matching the role given bygetCollectedRole().ActiveMapgetActiveMap()Retrieve anActiveMapinstance that contains components matching the role given bygetCollectedRole().ActiveSetgetActiveSet()Retrieve anActiveSetinstance that contains components matching the role given bygetCollectedRole().java.lang.StringgetCollectedRole()Retrieve the role of components to be collected by any of the active collections created here.
-
-
-
Method Detail
-
getCollectedRole
java.lang.String getCollectedRole()
Retrieve the role of components to be collected by any of the active collections created here.
-
getActiveMap
ActiveMap getActiveMap()
Retrieve anActiveMapinstance that contains components matching the role given bygetCollectedRole().
-
getActiveList
ActiveList getActiveList()
Retrieve anActiveListinstance that contains components matching the role given bygetCollectedRole().
-
getActiveSet
ActiveSet getActiveSet()
Retrieve anActiveSetinstance that contains components matching the role given bygetCollectedRole().
-
-