Class PlexusContainerLocator
- java.lang.Object
-
- org.codehaus.plexus.personality.plexus.lifecycle.phase.PlexusContainerLocator
-
- All Implemented Interfaces:
ServiceLocator
public class PlexusContainerLocator extends Object implements ServiceLocator
A ServiceLocator for PlexusContainer.- Author:
- Dan Diephouse
-
-
Constructor Summary
Constructors Constructor Description PlexusContainerLocator(PlexusContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasComponent(String componentKey)
boolean
hasComponent(String role, String roleHint)
Object
lookup(String role)
Object
lookup(String role, String roleHint)
List
lookupList(String role)
Map
lookupMap(String role)
void
release(Object component)
void
releaseAll(List components)
void
releaseAll(Map components)
-
-
-
Constructor Detail
-
PlexusContainerLocator
public PlexusContainerLocator(PlexusContainer container)
-
-
Method Detail
-
lookup
public Object lookup(String role) throws ComponentLookupException
- Specified by:
lookup
in interfaceServiceLocator
- Throws:
ComponentLookupException
-
lookup
public Object lookup(String role, String roleHint) throws ComponentLookupException
- Specified by:
lookup
in interfaceServiceLocator
- Throws:
ComponentLookupException
-
lookupMap
public Map lookupMap(String role) throws ComponentLookupException
- Specified by:
lookupMap
in interfaceServiceLocator
- Throws:
ComponentLookupException
-
lookupList
public List lookupList(String role) throws ComponentLookupException
- Specified by:
lookupList
in interfaceServiceLocator
- Throws:
ComponentLookupException
-
release
public void release(Object component) throws ComponentLifecycleException
- Specified by:
release
in interfaceServiceLocator
- Throws:
ComponentLifecycleException
-
releaseAll
public void releaseAll(Map components) throws ComponentLifecycleException
- Specified by:
releaseAll
in interfaceServiceLocator
- Throws:
ComponentLifecycleException
-
releaseAll
public void releaseAll(List components) throws ComponentLifecycleException
- Specified by:
releaseAll
in interfaceServiceLocator
- Throws:
ComponentLifecycleException
-
hasComponent
public boolean hasComponent(String componentKey)
- Specified by:
hasComponent
in interfaceServiceLocator
-
hasComponent
public boolean hasComponent(String role, String roleHint)
- Specified by:
hasComponent
in interfaceServiceLocator
-
-