public interface ServiceLocator
| 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) |
Object lookup(String role) throws ComponentLookupException
ComponentLookupExceptionObject lookup(String role, String hint) throws ComponentLookupException
ComponentLookupExceptionMap<String,Object> lookupMap(String role) throws ComponentLookupException
ComponentLookupExceptionList<Object> lookupList(String role) throws ComponentLookupException
ComponentLookupExceptionvoid release(Object component) throws ComponentLifecycleException
ComponentLifecycleExceptionvoid releaseAll(Map<String,?> components) throws ComponentLifecycleException
ComponentLifecycleExceptionvoid releaseAll(List<?> components) throws ComponentLifecycleException
ComponentLifecycleExceptionboolean hasComponent(String role)
Copyright © 2016. All Rights Reserved.