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 ServiceLocatorComponentLookupExceptionpublic Object lookup(String role, String roleHint) throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionpublic Map lookupMap(String role) throws ComponentLookupException
lookupMap in interface ServiceLocatorComponentLookupExceptionpublic List lookupList(String role) throws ComponentLookupException
lookupList in interface ServiceLocatorComponentLookupExceptionpublic void release(Object component) throws ComponentLifecycleException
release in interface ServiceLocatorComponentLifecycleExceptionpublic void releaseAll(Map components) throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionpublic void releaseAll(List components) throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionpublic boolean hasComponent(String componentKey)
hasComponent in interface ServiceLocatorpublic boolean hasComponent(String role, String roleHint)
hasComponent in interface ServiceLocatorCopyright © 2001–2016 Codehaus Plexus. All rights reserved.