public class ServiceLocatorImpl extends Object implements ServiceLocator
| Constructor and Description |
|---|
ServiceLocatorImpl(String name,
ServiceLocatorImpl parent)
Called by the Generator, and hence must be a public method
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> createMe) |
<T> T |
create(Class<T> createMe,
String strategy) |
<U> U |
createAndInitialize(Class<U> createMe)
Creates, injects and postConstructs, all in one
|
<U> U |
createAndInitialize(Class<U> createMe,
String strategy)
Creates, injects and postConstructs, all in one
|
List<ServiceHandle<?>> |
getAllServiceHandles(Annotation qualifier,
Annotation... qualifiers) |
<T> List<ServiceHandle<T>> |
getAllServiceHandles(Class<T> contractOrImpl,
Annotation... qualifiers) |
List<ServiceHandle<?>> |
getAllServiceHandles(Filter searchCriteria) |
List<ServiceHandle<?>> |
getAllServiceHandles(Type contractOrImpl,
Annotation... qualifiers) |
<T> List<T> |
getAllServices(Annotation qualifier,
Annotation... qualifiers) |
<T> List<T> |
getAllServices(Class<T> contractOrImpl,
Annotation... qualifiers) |
List<?> |
getAllServices(Filter searchCriteria) |
<T> List<T> |
getAllServices(Type contractOrImpl,
Annotation... qualifiers) |
ActiveDescriptor<?> |
getBestDescriptor(Filter filter) |
String |
getDefaultClassAnalyzerName() |
List<ActiveDescriptor<?>> |
getDescriptors(Filter filter) |
ActiveDescriptor<?> |
getInjecteeDescriptor(Injectee injectee) |
long |
getLocatorId() |
String |
getName() |
boolean |
getNeutralContextClassLoader() |
ServiceLocator |
getParent() |
<T> T |
getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
Deprecated.
|
<T> T |
getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root,
Injectee originalRequest) |
<T> T |
getService(Class<T> contractOrImpl,
Annotation... qualifiers) |
<T> T |
getService(Class<T> contractOrImpl,
String name,
Annotation... qualifiers) |
<T> T |
getService(Type contractOrImpl,
Annotation... qualifiers) |
<T> T |
getService(Type contractOrImpl,
String name,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
getServiceHandle(ActiveDescriptor<T> activeDescriptor) |
<T> ServiceHandle<T> |
getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee) |
<T> ServiceHandle<T> |
getServiceHandle(Class<T> contractOrImpl,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
getServiceHandle(Class<T> contractOrImpl,
String name,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
getServiceHandle(Type contractOrImpl,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
getServiceHandle(Type contractOrImpl,
String name,
Annotation... qualifiers) |
ServiceLocatorState |
getState() |
void |
inject(Object injectMe) |
void |
inject(Object injectMe,
String strategy) |
void |
postConstruct(Object postConstructMe) |
void |
postConstruct(Object postConstructMe,
String strategy) |
void |
preDestroy(Object preDestroyMe) |
void |
preDestroy(Object preDestroyMe,
String strategy) |
ActiveDescriptor<?> |
reifyDescriptor(Descriptor descriptor) |
ActiveDescriptor<?> |
reifyDescriptor(Descriptor descriptor,
Injectee injectee) |
void |
setDefaultClassAnalyzerName(String defaultClassAnalyzer) |
void |
setNeutralContextClassLoader(boolean neutralContextClassLoader) |
void |
shutdown() |
String |
toString() |
public ServiceLocatorImpl(String name, ServiceLocatorImpl parent)
name - The name of this locatorparent - The parent of this locator (may be null)public List<ActiveDescriptor<?>> getDescriptors(Filter filter)
getDescriptors in interface ServiceLocatorpublic ActiveDescriptor<?> getBestDescriptor(Filter filter)
getBestDescriptor in interface ServiceLocatorpublic ActiveDescriptor<?> reifyDescriptor(Descriptor descriptor, Injectee injectee) throws MultiException
reifyDescriptor in interface ServiceLocatorMultiExceptionpublic ActiveDescriptor<?> reifyDescriptor(Descriptor descriptor) throws MultiException
reifyDescriptor in interface ServiceLocatorMultiExceptionpublic ActiveDescriptor<?> getInjecteeDescriptor(Injectee injectee) throws MultiException
getInjecteeDescriptor in interface ServiceLocatorMultiExceptionpublic <T> ServiceHandle<T> getServiceHandle(ActiveDescriptor<T> activeDescriptor, Injectee injectee) throws MultiException
getServiceHandle in interface ServiceLocatorMultiExceptionpublic <T> ServiceHandle<T> getServiceHandle(ActiveDescriptor<T> activeDescriptor) throws MultiException
getServiceHandle in interface ServiceLocatorMultiException@Deprecated public <T> T getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root) throws MultiException
getService in interface ServiceLocatorMultiExceptionpublic <T> T getService(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root, Injectee originalRequest) throws MultiException
getService in interface ServiceLocatorMultiExceptionpublic <T> T getService(Class<T> contractOrImpl, Annotation... qualifiers) throws MultiException
getService in interface ServiceLocatorMultiExceptionpublic <T> T getService(Type contractOrImpl, Annotation... qualifiers) throws MultiException
getService in interface ServiceLocatorMultiExceptionpublic <T> T getService(Class<T> contractOrImpl, String name, Annotation... qualifiers) throws MultiException
getService in interface ServiceLocatorMultiExceptionpublic <T> T getService(Type contractOrImpl, String name, Annotation... qualifiers) throws MultiException
getService in interface ServiceLocatorMultiExceptionpublic <T> List<T> getAllServices(Class<T> contractOrImpl, Annotation... qualifiers) throws MultiException
getAllServices in interface ServiceLocatorMultiExceptionpublic <T> List<T> getAllServices(Type contractOrImpl, Annotation... qualifiers) throws MultiException
getAllServices in interface ServiceLocatorMultiExceptionpublic <T> List<T> getAllServices(Annotation qualifier, Annotation... qualifiers) throws MultiException
getAllServices in interface ServiceLocatorMultiExceptionpublic List<?> getAllServices(Filter searchCriteria) throws MultiException
getAllServices in interface ServiceLocatorMultiExceptionpublic String getName()
getName in interface ServiceLocatorpublic ServiceLocatorState getState()
getState in interface ServiceLocatorpublic void shutdown()
shutdown in interface ServiceLocatorpublic <T> T create(Class<T> createMe)
create in interface ServiceLocatorpublic <T> T create(Class<T> createMe, String strategy)
create in interface ServiceLocatorpublic void inject(Object injectMe)
inject in interface ServiceLocatorpublic void inject(Object injectMe, String strategy)
inject in interface ServiceLocatorpublic void postConstruct(Object postConstructMe)
postConstruct in interface ServiceLocatorpublic void postConstruct(Object postConstructMe, String strategy)
postConstruct in interface ServiceLocatorpublic void preDestroy(Object preDestroyMe)
preDestroy in interface ServiceLocatorpublic void preDestroy(Object preDestroyMe, String strategy)
preDestroy in interface ServiceLocatorpublic <U> U createAndInitialize(Class<U> createMe)
createAndInitialize in interface ServiceLocatorpublic <U> U createAndInitialize(Class<U> createMe, String strategy)
createAndInitialize in interface ServiceLocatorpublic <T> ServiceHandle<T> getServiceHandle(Class<T> contractOrImpl, Annotation... qualifiers) throws MultiException
getServiceHandle in interface ServiceLocatorMultiExceptionpublic <T> ServiceHandle<T> getServiceHandle(Type contractOrImpl, Annotation... qualifiers) throws MultiException
getServiceHandle in interface ServiceLocatorMultiExceptionpublic <T> List<ServiceHandle<T>> getAllServiceHandles(Class<T> contractOrImpl, Annotation... qualifiers) throws MultiException
getAllServiceHandles in interface ServiceLocatorMultiExceptionpublic List<ServiceHandle<?>> getAllServiceHandles(Type contractOrImpl, Annotation... qualifiers) throws MultiException
getAllServiceHandles in interface ServiceLocatorMultiExceptionpublic <T> ServiceHandle<T> getServiceHandle(Class<T> contractOrImpl, String name, Annotation... qualifiers) throws MultiException
getServiceHandle in interface ServiceLocatorMultiExceptionpublic <T> ServiceHandle<T> getServiceHandle(Type contractOrImpl, String name, Annotation... qualifiers) throws MultiException
getServiceHandle in interface ServiceLocatorMultiExceptionpublic List<ServiceHandle<?>> getAllServiceHandles(Filter searchCriteria) throws MultiException
getAllServiceHandles in interface ServiceLocatorMultiExceptionpublic List<ServiceHandle<?>> getAllServiceHandles(Annotation qualifier, Annotation... qualifiers) throws MultiException
getAllServiceHandles in interface ServiceLocatorMultiExceptionpublic long getLocatorId()
getLocatorId in interface ServiceLocatorpublic String getDefaultClassAnalyzerName()
getDefaultClassAnalyzerName in interface ServiceLocatorpublic void setDefaultClassAnalyzerName(String defaultClassAnalyzer)
setDefaultClassAnalyzerName in interface ServiceLocatorpublic ServiceLocator getParent()
getParent in interface ServiceLocatorpublic boolean getNeutralContextClassLoader()
getNeutralContextClassLoader in interface ServiceLocatorpublic void setNeutralContextClassLoader(boolean neutralContextClassLoader)
setNeutralContextClassLoader in interface ServiceLocatorCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.