public interface ServiceLocator
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasComponent(String componentKey) |
boolean |
hasComponent(String role,
String roleHint) |
Object |
lookup(String componentKey) |
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) |
Object lookup(String componentKey) throws ComponentLookupException
ComponentLookupExceptionObject lookup(String role, String roleHint) throws ComponentLookupException
ComponentLookupExceptionMap lookupMap(String role) throws ComponentLookupException
ComponentLookupExceptionList lookupList(String role) throws ComponentLookupException
ComponentLookupExceptionvoid release(Object component) throws ComponentLifecycleException
ComponentLifecycleExceptionvoid releaseAll(Map components) throws ComponentLifecycleException
ComponentLifecycleExceptionvoid releaseAll(List components) throws ComponentLifecycleException
ComponentLifecycleExceptionboolean hasComponent(String componentKey)
Copyright © 2001–2024 Codehaus Plexus. All rights reserved.