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
ComponentLookupException
Object lookup(String role, String roleHint) throws ComponentLookupException
ComponentLookupException
Map lookupMap(String role) throws ComponentLookupException
ComponentLookupException
List lookupList(String role) throws ComponentLookupException
ComponentLookupException
void release(Object component) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(Map components) throws ComponentLifecycleException
ComponentLifecycleException
void releaseAll(List components) throws ComponentLifecycleException
ComponentLifecycleException
boolean hasComponent(String componentKey)
Copyright © 2019. All rights reserved.