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 ServiceLocator
ComponentLookupException
public Object lookup(String role, String hint) throws ComponentLookupException
lookup
in interface ServiceLocator
ComponentLookupException
public Map<String,Object> lookupMap(String role) throws ComponentLookupException
lookupMap
in interface ServiceLocator
ComponentLookupException
public List<Object> 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<String,?> components) throws ComponentLifecycleException
releaseAll
in interface ServiceLocator
ComponentLifecycleException
public void releaseAll(List<?> components) throws ComponentLifecycleException
releaseAll
in interface ServiceLocator
ComponentLifecycleException
public boolean hasComponent(String role)
hasComponent
in interface ServiceLocator
public boolean hasComponent(String role, String hint)
hasComponent
in interface ServiceLocator
Copyright © 2013. All rights reserved.