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 componentKey) |
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 componentKey) throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#lookup(java.lang.String)public Object lookup(String role, String roleHint) throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#lookup(java.lang.String, java.lang.String)public Map lookupMap(String role) throws ComponentLookupException
lookupMap in interface ServiceLocatorComponentLookupExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#lookupMap(java.lang.String)public List lookupList(String role) throws ComponentLookupException
lookupList in interface ServiceLocatorComponentLookupExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#lookupList(java.lang.String)public void release(Object component) throws ComponentLifecycleException
release in interface ServiceLocatorComponentLifecycleExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#release(java.lang.Object)public void releaseAll(Map components) throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#releaseAll(java.util.Map)public void releaseAll(List components) throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionorg.codehaus.xfire.lifecycle.ServiceLocator#releaseAll(java.util.List)public boolean hasComponent(String componentKey)
hasComponent in interface ServiceLocatororg.codehaus.xfire.lifecycle.ServiceLocator#hasComponent(java.lang.String)public boolean hasComponent(String role, String roleHint)
hasComponent in interface ServiceLocatororg.codehaus.xfire.lifecycle.ServiceLocator#hasComponent(java.lang.String, java.lang.String)