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
ComponentLookupException
Object lookup(String role, String hint) throws ComponentLookupException
ComponentLookupException
Map<String,Object> lookupMap(String role) throws ComponentLookupException
ComponentLookupException
List<Object> lookupList(String role) throws ComponentLookupException
ComponentLookupException
void release(Object component) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(Map<String,?> components) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(List<?> components) throws ComponentLifecycleException
ComponentLifecycleException
boolean hasComponent(String role)
Copyright © 2016. All Rights Reserved.