@Singleton public class CdiInjectionManager extends Object implements InjectionManager
InjectionManager used on the server side.| Constructor and Description |
|---|
CdiInjectionManager(javax.enterprise.inject.spi.BeanManager beanManager,
Binder bindings) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeRegistration() |
<T> T |
create(Class<T> createMe) |
<T> T |
createAndInitialize(Class<T> createMe) |
protected <T> javax.enterprise.context.spi.CreationalContext<T> |
createCreationalContext(javax.enterprise.inject.spi.Bean<T> bean) |
ForeignDescriptor |
createForeignDescriptor(Binding binding) |
<T> List<T> |
getAllInstances(Type contractOrImpl) |
<T> List<ServiceHolder<T>> |
getAllServiceHolders(Class<T> contractOrImpl,
Annotation... qualifiers) |
protected javax.enterprise.inject.spi.BeanManager |
getBeanManager() |
protected Binder |
getBindings() |
<T> T |
getInstance(Class<T> contractOrImpl) |
<T> T |
getInstance(Class<T> contractOrImpl,
Annotation... qualifiers) |
<T> T |
getInstance(Class<T> contractOrImpl,
String classAnalyzer) |
Object |
getInstance(ForeignDescriptor foreignDescriptor) |
<T> T |
getInstance(Type contractOrImpl) |
protected <T> T |
getInstanceInternal(Type contractOrImpl,
Annotation... qualifiers) |
void |
inject(Object instance) |
void |
inject(Object injectMe,
String classAnalyzer) |
boolean |
isRegistrable(Class<?> clazz) |
protected boolean |
isRuntimeTypeBean(javax.enterprise.inject.spi.Bean<?> bean)
Identifies Jersey beans that are from different runtime (CLIENT vs SERVER).
|
boolean |
isShutdown() |
void |
preDestroy(Object preDestroyMe) |
void |
register(Binder binder) |
void |
register(Binding binding) |
void |
register(Iterable<Binding> bindings) |
void |
register(Object provider) |
void |
shutdown() |
public CdiInjectionManager(javax.enterprise.inject.spi.BeanManager beanManager,
Binder bindings)
public void register(Binding binding)
register in interface InjectionManagerpublic void register(Iterable<Binding> bindings)
register in interface InjectionManagerpublic void register(Binder binder)
register in interface InjectionManagerpublic void register(Object provider) throws IllegalArgumentException
register in interface InjectionManagerIllegalArgumentExceptionpublic boolean isRegistrable(Class<?> clazz)
isRegistrable in interface InjectionManagerpublic <T> T create(Class<T> createMe)
create in interface InjectionManagerpublic <T> T createAndInitialize(Class<T> createMe)
createAndInitialize in interface InjectionManagerpublic <T> List<ServiceHolder<T>> getAllServiceHolders(Class<T> contractOrImpl, Annotation... qualifiers)
getAllServiceHolders in interface InjectionManagerpublic <T> T getInstance(Class<T> contractOrImpl, Annotation... qualifiers)
getInstance in interface InjectionManagerpublic <T> T getInstance(Class<T> contractOrImpl)
getInstance in interface InjectionManagerpublic <T> T getInstance(Type contractOrImpl)
getInstance in interface InjectionManagerprotected <T> T getInstanceInternal(Type contractOrImpl, Annotation... qualifiers)
public Object getInstance(ForeignDescriptor foreignDescriptor)
getInstance in interface InjectionManagerpublic ForeignDescriptor createForeignDescriptor(Binding binding)
createForeignDescriptor in interface InjectionManagerpublic <T> List<T> getAllInstances(Type contractOrImpl)
getAllInstances in interface InjectionManagerpublic void inject(Object instance)
inject in interface InjectionManagerpublic void preDestroy(Object preDestroyMe)
preDestroy in interface InjectionManagerpublic void completeRegistration()
throws IllegalStateException
completeRegistration in interface InjectionManagerIllegalStateExceptionpublic void shutdown()
shutdown in interface InjectionManagerpublic boolean isShutdown()
isShutdown in interface InjectionManagerprotected Binder getBindings()
protected javax.enterprise.inject.spi.BeanManager getBeanManager()
protected <T> javax.enterprise.context.spi.CreationalContext<T> createCreationalContext(javax.enterprise.inject.spi.Bean<T> bean)
protected boolean isRuntimeTypeBean(javax.enterprise.inject.spi.Bean<?> bean)
RuntimeType.bean - the given CDI bean.RuntimeType.public void inject(Object injectMe, String classAnalyzer)
inject in interface InjectionManagerpublic <T> T getInstance(Class<T> contractOrImpl, String classAnalyzer)
getInstance in interface InjectionManagerCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.