public final class PlexusContainerLocator extends Object implements ServiceLocator
| Constructor and Description |
|---|
PlexusContainerLocator(PlexusContainer container) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasComponent(String role) |
boolean |
hasComponent(String role,
String hint) |
Object |
lookup(String role) |
Object |
lookup(String role,
String hint) |
List<Object> |
lookupList(String role) |
Map<String,Object> |
lookupMap(String role) |
void |
release(Object component) |
void |
releaseAll(List<?> components) |
void |
releaseAll(Map<String,?> components) |
public PlexusContainerLocator(PlexusContainer container)
public Object lookup(String role) throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionpublic Object lookup(String role, String hint) throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionpublic Map<String,Object> lookupMap(String role) throws ComponentLookupException
lookupMap in interface ServiceLocatorComponentLookupExceptionpublic List<Object> lookupList(String role) throws ComponentLookupException
lookupList in interface ServiceLocatorComponentLookupExceptionpublic void release(Object component) throws ComponentLifecycleException
release in interface ServiceLocatorComponentLifecycleExceptionpublic void releaseAll(Map<String,?> components) throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionpublic void releaseAll(List<?> components) throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionpublic boolean hasComponent(String role)
hasComponent in interface ServiceLocatorpublic boolean hasComponent(String role, String hint)
hasComponent in interface ServiceLocatorCopyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.