|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
static java.lang.String |
ROLE
|
Method Summary | |
---|---|
ActiveList |
getActiveList(java.lang.Class role)
Retrieve an ActiveList instance that contains the components of the given role. |
ActiveList |
getActiveList(java.lang.String role)
Retrieve an ActiveList instance that contains the components of the given role. |
ActiveMap |
getActiveMap(java.lang.Class role)
Retrieve an ActiveMap instance that contains the components of the given role. |
ActiveMap |
getActiveMap(java.lang.String role)
Retrieve an ActiveMap instance that contains the components of the given role. |
ActiveSet |
getActiveSet(java.lang.Class role)
Retrieve an ActiveSet instance that contains the components of the given role. |
ActiveSet |
getActiveSet(java.lang.String role)
Retrieve an ActiveSet instance that contains the components of the given role. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
ActiveMap getActiveMap(java.lang.String role)
ActiveMap
instance that contains the components of the given role.
ActiveList getActiveList(java.lang.String role)
ActiveList
instance that contains the components of the given role.
ActiveSet getActiveSet(java.lang.String role)
ActiveSet
instance that contains the components of the given role.
ActiveMap getActiveMap(java.lang.Class role)
ActiveMap
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().
role
- the class whose name we will use as the role for the components to retrieve.ActiveList getActiveList(java.lang.Class role)
ActiveList
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().
role
- the class whose name we will use as the role for the components to retrieve.ActiveSet getActiveSet(java.lang.Class role)
ActiveSet
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().
role
- the class whose name we will use as the role for the components to retrieve.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |