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
|
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 Object assistedInject(Object injectMe, Method method, MethodParameter... params)
assistedInject in interface ServiceLocatorpublic Object assistedInject(Object injectMe, Method method, ServiceHandle<?> root, MethodParameter... params)
assistedInject 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 Unqualified getDefaultUnqualified()
getDefaultUnqualified in interface ServiceLocatorpublic void setDefaultUnqualified(Unqualified unqualified)
setDefaultUnqualified in interface ServiceLocatorpublic ServiceLocator getParent()
getParent in interface ServiceLocatorpublic boolean getNeutralContextClassLoader()
getNeutralContextClassLoader in interface ServiceLocatorpublic void setNeutralContextClassLoader(boolean neutralContextClassLoader)
setNeutralContextClassLoader in interface ServiceLocatorCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.