public class PlexusContainerLocator extends Object implements ServiceLocator
Constructor and Description |
---|
PlexusContainerLocator(PlexusContainer container) |
Modifier and Type | Method and 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) |
public PlexusContainerLocator(PlexusContainer container)
public Object lookup(String role) throws ComponentLookupException
lookup
in interface ServiceLocator
ComponentLookupException
public Object lookup(String role, String roleHint) throws ComponentLookupException
lookup
in interface ServiceLocator
ComponentLookupException
public Map lookupMap(String role) throws ComponentLookupException
lookupMap
in interface ServiceLocator
ComponentLookupException
public List lookupList(String role) throws ComponentLookupException
lookupList
in interface ServiceLocator
ComponentLookupException
public void release(Object component) throws ComponentLifecycleException
release
in interface ServiceLocator
ComponentLifecycleException
public void releaseAll(Map components) throws ComponentLifecycleException
releaseAll
in interface ServiceLocator
ComponentLifecycleException
public void releaseAll(List components) throws ComponentLifecycleException
releaseAll
in interface ServiceLocator
ComponentLifecycleException
public boolean hasComponent(String componentKey)
hasComponent
in interface ServiceLocator
public boolean hasComponent(String role, String roleHint)
hasComponent
in interface ServiceLocator
Copyright © 2001-2012 Codehaus. All Rights Reserved.