public final class PlexusContainerLocator extends java.lang.Object implements ServiceLocator
| Modifier and Type | Field and Description |
|---|---|
private PlexusContainer |
container |
| Constructor and Description |
|---|
PlexusContainerLocator(PlexusContainer container) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasComponent(java.lang.String role) |
boolean |
hasComponent(java.lang.String role,
java.lang.String hint) |
java.lang.Object |
lookup(java.lang.String role) |
java.lang.Object |
lookup(java.lang.String role,
java.lang.String hint) |
java.util.List<java.lang.Object> |
lookupList(java.lang.String role) |
java.util.Map<java.lang.String,java.lang.Object> |
lookupMap(java.lang.String role) |
void |
release(java.lang.Object component) |
void |
releaseAll(java.util.List<?> components) |
void |
releaseAll(java.util.Map<java.lang.String,?> components) |
private final PlexusContainer container
public PlexusContainerLocator(PlexusContainer container)
public java.lang.Object lookup(java.lang.String role)
throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionpublic java.lang.Object lookup(java.lang.String role,
java.lang.String hint)
throws ComponentLookupException
lookup in interface ServiceLocatorComponentLookupExceptionpublic java.util.Map<java.lang.String,java.lang.Object> lookupMap(java.lang.String role)
throws ComponentLookupException
lookupMap in interface ServiceLocatorComponentLookupExceptionpublic java.util.List<java.lang.Object> lookupList(java.lang.String role)
throws ComponentLookupException
lookupList in interface ServiceLocatorComponentLookupExceptionpublic void release(java.lang.Object component)
throws ComponentLifecycleException
release in interface ServiceLocatorComponentLifecycleExceptionpublic void releaseAll(java.util.Map<java.lang.String,?> components)
throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionpublic void releaseAll(java.util.List<?> components)
throws ComponentLifecycleException
releaseAll in interface ServiceLocatorComponentLifecycleExceptionpublic boolean hasComponent(java.lang.String role)
hasComponent in interface ServiceLocatorpublic boolean hasComponent(java.lang.String role,
java.lang.String hint)
hasComponent in interface ServiceLocator