Interface ServiceLocator
-
- All Known Implementing Classes:
PlexusContainerLocator
public interface ServiceLocator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasComponent(String role)booleanhasComponent(String role, String hint)Objectlookup(String role)Objectlookup(String role, String hint)List<Object>lookupList(String role)Map<String,Object>lookupMap(String role)voidrelease(Object component)voidreleaseAll(List<?> components)voidreleaseAll(Map<String,?> components)
-
-
-
Method Detail
-
lookup
Object lookup(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookup
Object lookup(String role, String hint) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupMap
Map<String,Object> lookupMap(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
lookupList
List<Object> lookupList(String role) throws ComponentLookupException
- Throws:
ComponentLookupException
-
release
void release(Object component) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
releaseAll
void releaseAll(Map<String,?> components) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
releaseAll
void releaseAll(List<?> components) throws ComponentLifecycleException
- Throws:
ComponentLifecycleException
-
hasComponent
boolean hasComponent(String role)
-
-