Package org.codehaus.plexus.collections
Interface ActiveCollectionManager
- All Known Implementing Classes:
DefaultActiveCollectionManager
public interface ActiveCollectionManager
Manager interface provided for backward compatibility to apps using plexus-container-default with
versions under 1.0-alpha-22. This is necessary because the active collections in this project
implement Map, List, and Set...three interfaces which trigger the container in older versions to
attempt to find multiple components of the specified role (in this case, it'd be ActiveMap|Set|List),
and assign all of them as a single requirement on the dependent component. To work around these
cases, code in older applications can use a requirement on this manager, then ask the manager for
the active collection of choice. It's a little less dynamic, but should still work well.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetActiveList
(Class role) Retrieve anActiveList
instance that contains the components of the given role.getActiveList
(String role) Retrieve anActiveList
instance that contains the components of the given role.getActiveMap
(Class role) Retrieve anActiveMap
instance that contains the components of the given role.getActiveMap
(String role) Retrieve anActiveMap
instance that contains the components of the given role.getActiveSet
(Class role) Retrieve anActiveSet
instance that contains the components of the given role.getActiveSet
(String role) Retrieve anActiveSet
instance that contains the components of the given role.
-
Field Details
-
ROLE
-
-
Method Details
-
getActiveMap
Retrieve anActiveMap
instance that contains the components of the given role. -
getActiveList
Retrieve anActiveList
instance that contains the components of the given role. -
getActiveSet
Retrieve anActiveSet
instance that contains the components of the given role. -
getActiveMap
Retrieve anActiveMap
instance that contains the components of the given role. NOTE: the role which is used is actually the class-name, not the class...so, here ROLE = role.getName().- Parameters:
role
- the class whose name we will use as the role for the components to retrieve.
-
getActiveList
Retrieve anActiveList
instance that contains the components of the given role. NOTE: the role which is used is actually the class-name, not the class...so, here ROLE = role.getName().- Parameters:
role
- the class whose name we will use as the role for the components to retrieve.
-
getActiveSet
Retrieve anActiveSet
instance that contains the components of the given role. NOTE: the role which is used is actually the class-name, not the class...so, here ROLE = role.getName().- Parameters:
role
- the class whose name we will use as the role for the components to retrieve.
-