Package | Description |
---|---|
com.caucho.config.event | |
com.caucho.config.inject | |
com.caucho.config.j2ee | |
com.caucho.config.program | |
com.caucho.config.scope | |
com.caucho.config.types | |
com.caucho.config.xml | |
com.caucho.ejb.inject | |
com.caucho.ejb.session | |
com.caucho.jca.program | |
com.caucho.jca.ra | |
com.caucho.server.webbeans | |
javax.enterprise.context.spi | |
javax.enterprise.inject.spi |
Java Dependency Injection programmatic APIs.
|
Modifier and Type | Method and Description |
---|---|
T |
EventBeanImpl.create(CreationalContext<T> env) |
void |
EventBeanImpl.destroy(T instance,
CreationalContext<T> env) |
Modifier and Type | Class and Description |
---|---|
class |
CreationalContextImpl<T>
Stack of partially constructed beans.
|
class |
DependentCreationalContext<T>
Stack of partially constructed beans.
|
class |
OwnerCreationalContext<T>
Stack of partially constructed beans.
|
class |
ProducesCreationalContext<T>
Stack of partially constructed beans.
|
Modifier and Type | Method and Description |
---|---|
<T> CreationalContext<T> |
InjectManager.createCreationalContext(Contextual<T> bean) |
Modifier and Type | Method and Description |
---|---|
InjectionPoint |
InjectionPointBean.create(CreationalContext<InjectionPoint> env) |
InjectionPoint |
InjectionPointStandardBean.create(CreationalContext<InjectionPoint> env) |
java.lang.Object |
DelegateProxyBean.create(CreationalContext<java.lang.Object> creationalContext) |
T |
AbstractIntrospectedBean.create(CreationalContext<T> env)
Instantiate the bean.
|
T |
InstanceBeanImpl.create(CreationalContext<T> env) |
T |
BeanWrapper.create(CreationalContext<T> env) |
T |
InjectionBean.create(CreationalContext<T> cxt) |
abstract T |
AbstractBean.create(CreationalContext<T> creationalContext) |
abstract T |
BeanAdapter.create(CreationalContext<T> env) |
T |
ProducesFieldBean.create(CreationalContext<T> createEnv) |
T |
ManagedSingletonBean.create(CreationalContext<T> cxt) |
T |
ProducesMethodBean.create(CreationalContext<T> createEnv) |
T |
SingletonBean.create(CreationalContext<T> env) |
T |
DecoratorBean.create(CreationalContext<T> creationalContext) |
abstract T |
AbstractSingletonBean.create(CreationalContext<T> env) |
X |
InterceptorSelfBean.create(CreationalContext<X> cxt) |
X |
NewBean.create(CreationalContext<X> env)
Creates a new instance of the component.
|
X |
ManagedBeanImpl.create(CreationalContext<X> context)
Creates a new instance of the component.
|
X |
InterceptorRuntimeBean.create(CreationalContext<X> cxt) |
X |
InterceptorBean.create(CreationalContext<X> creationalContext) |
X |
ManagedBeanImpl.createDependent(CreationalContext<X> env)
Creates a new instance of the component.
|
void |
InjectionPointBean.destroy(InjectionPoint instance,
CreationalContext<InjectionPoint> env) |
void |
InjectionPointStandardBean.destroy(InjectionPoint instance,
CreationalContext<InjectionPoint> env) |
void |
DelegateProxyBean.destroy(java.lang.Object instance,
CreationalContext<java.lang.Object> creationalContext) |
void |
AbstractIntrospectedBean.destroy(T instance,
CreationalContext<T> env)
Call destroy
|
void |
InstanceBeanImpl.destroy(T instance,
CreationalContext<T> env) |
void |
BeanWrapper.destroy(T instance,
CreationalContext<T> env) |
void |
AbstractBean.destroy(T instance,
CreationalContext<T> env) |
abstract void |
BeanAdapter.destroy(T instance,
CreationalContext<T> env) |
void |
ProducesFieldBean.destroy(T instance,
CreationalContext<T> cxt) |
void |
ProducesMethodBean.destroy(T instance,
CreationalContext<T> cxt)
Call destroy
|
void |
DecoratorBean.destroy(T instance,
CreationalContext<T> env)
Call destroy
|
void |
InterceptorSelfBean.destroy(X instance,
CreationalContext<X> env)
Destroys a bean instance
|
void |
NewBean.destroy(X instance,
CreationalContext<X> env) |
void |
ManagedBeanImpl.destroy(X instance,
CreationalContext<X> cxt)
Call pre-destroy
|
void |
InterceptorRuntimeBean.destroy(X instance,
CreationalContext<X> env)
Destroys a bean instance
|
void |
InterceptorBean.destroy(X instance,
CreationalContext<X> env)
Destroys a bean instance
|
T |
InjectionPointArg.eval(CreationalContext<T> env) |
java.lang.Object |
InjectManager.getInjectableReference(InjectionPoint ij,
CreationalContext<?> parentCxt)
Internal callback during creation to get a new injection instance.
|
java.lang.Object |
InjectManager.getReference(Bean<?> bean,
java.lang.reflect.Type type,
CreationalContext<?> createContext)
Returns an instance for the given bean.
|
void |
InjectionTargetFilter.inject(T instance,
CreationalContext<T> ctx) |
void |
AbstractInjectionTarget.inject(X instance,
CreationalContext<X> ctx)
Inject the bean.
|
void |
CandiProducer.inject(X instance,
CreationalContext<X> env) |
void |
InjectionTargetBuilder.inject(X instance,
CreationalContext<X> env) |
T |
DisposesProducer.produce(CreationalContext<T> cxt)
Produces a new bean instance
|
T |
InjectionTargetFilter.produce(CreationalContext<T> ctx) |
abstract X |
AbstractInjectionTarget.produce(CreationalContext<X> ctx)
Instantiate the bean.
|
X |
CandiProducer.produce(CreationalContext<X> ctx) |
X |
InjectionTargetBuilder.produce(CreationalContext<X> env) |
Modifier and Type | Method and Description |
---|---|
<T> void |
PostConstructProgram.inject(T bean,
CreationalContext<T> env) |
<T> void |
PreDestroyInject.inject(T value,
CreationalContext<T> env) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
ConfigProgram.create(java.lang.Class<T> type,
CreationalContext<T> env)
Configures a bean given a class to instantiate.
|
<T> T |
RecoverableProgram.create(ConfigType<T> type,
CreationalContext<T> cxt) |
<T> T |
ExprProgram.create(ConfigType<T> type,
CreationalContext<T> env) |
<T> T |
NodeBuilderChildProgram.create(ConfigType<T> type,
CreationalContext<T> cxt) |
<T> T |
ConfigProgram.create(ConfigType<T> type,
CreationalContext<T> env) |
<T> T |
PropertyValueProgram.create(ConfigType<T> type,
CreationalContext<T> env) |
<T> T |
PropertyStringProgram.create(ConfigType<T> type,
CreationalContext<T> env) |
java.lang.Object |
BeanArg.eval(CreationalContext<T> parentEnv) |
abstract java.lang.Object |
Arg.eval(CreationalContext<T> parentEnv) |
java.lang.Object |
ValueArg.eval(CreationalContext<T> env) |
<T> void |
RecoverableProgram.inject(T bean,
CreationalContext<T> cxt) |
<T> void |
MethodGeneratorProgram.inject(T bean,
CreationalContext<T> env) |
<T> void |
ResourceProgram.inject(T bean,
CreationalContext<T> env) |
<T> void |
ContainerProgram.inject(T bean,
CreationalContext<T> env)
Invokes the child programs on the bean
|
<T> void |
ExprProgram.inject(T bean,
CreationalContext<T> createContext) |
<T> void |
FieldGeneratorProgram.inject(T bean,
CreationalContext<T> env) |
<T> void |
NodeBuilderChildProgram.inject(T bean,
CreationalContext<T> cxt) |
abstract <T> void |
ConfigProgram.inject(T bean,
CreationalContext<T> createContext)
Configures the bean using the current program.
|
<T> void |
PropertyValueProgram.inject(T bean,
CreationalContext<T> env)
Injects the bean with the dependencies
|
<T> void |
NullProgram.inject(T bean,
CreationalContext<T> createContext) |
<T> void |
PropertyStringProgram.inject(T bean,
CreationalContext<T> env)
Injects the bean with the dependencies
|
<T> void |
ResourceInjectionTargetProgram.inject(T bean,
CreationalContext<T> env) |
<T> void |
NodeBuilderProgram.inject(T bean,
CreationalContext<T> cxt) |
Modifier and Type | Class and Description |
---|---|
class |
CreationContextImpl
Context for a named EL bean scope
|
Modifier and Type | Method and Description |
---|---|
protected <T> T |
AbstractScopeContext.create(Contextual<T> bean,
CreationalContext<T> env) |
protected <T> T |
SingletonScope.create(Contextual<T> bean,
CreationalContext<T> env) |
<T> T |
AbstractScopeContext.get(Contextual<T> bean,
CreationalContext<T> creationalContext) |
<T> T |
ErrorContext.get(Contextual<T> bean,
CreationalContext<T> creationalContext) |
<T> T |
DependentContext.get(Contextual<T> bean,
CreationalContext<T> creationalContext) |
<T> void |
ContextContainer.put(Contextual<T> bean,
java.lang.Object id,
T value,
CreationalContext<T> env) |
Modifier and Type | Method and Description |
---|---|
<T> void |
DataSourceRef.inject(T bean,
CreationalContext<T> env)
Configures the bean using the current program.
|
<T> void |
EnvEntry.inject(T bean,
CreationalContext<T> env)
Configures the bean using the current program.
|
<T> void |
ResourceGroupConfig.inject(T bean,
CreationalContext<T> env)
Configures the bean using the current program.
|
Modifier and Type | Method and Description |
---|---|
CreationalContext<?> |
XmlConfigContext.getCreationalContext() |
CreationalContext<?> |
XmlConfigContext.setCreationalContext(CreationalContext<?> cxt) |
Modifier and Type | Method and Description |
---|---|
X |
XmlBean.create(CreationalContext<X> env) |
void |
XmlBean.inject(X instance,
CreationalContext<X> env) |
void |
XmlInjectionTarget.inject(X instance,
CreationalContext<X> env) |
X |
XmlBean.produce(CreationalContext<X> context) |
X |
XmlInjectionTarget.produce(CreationalContext<X> context) |
CreationalContext<?> |
XmlConfigContext.setCreationalContext(CreationalContext<?> cxt) |
Modifier and Type | Method and Description |
---|---|
T |
SessionBeanImpl.create(CreationalContext<T> env) |
T |
SessionRegistrationBean.create(CreationalContext<T> env) |
void |
SessionBeanImpl.destroy(T instance,
CreationalContext<T> cxt) |
void |
SessionRegistrationBean.destroy(T instance,
CreationalContext<T> cxt) |
Modifier and Type | Method and Description |
---|---|
<X> X |
SingletonProxyFactory.__caucho_createNew(InjectionTarget<X> bean,
CreationalContext<X> env) |
java.lang.Object |
StatefulProvider.__caucho_createNew(InjectionTarget bean,
CreationalContext env) |
void |
SingletonComponent.inject(X instance,
CreationalContext<X> ctx)
Inject the bean.
|
void |
StatefulComponent.inject(X instance,
CreationalContext<X> ctx)
Inject the bean.
|
X |
SingletonComponent.produce(CreationalContext<X> env)
Creates a new instance of the component
|
X |
StatefulComponent.produce(CreationalContext<X> env)
Creates a new instance of the component
|
Modifier and Type | Method and Description |
---|---|
<T> void |
ResourceAdapterAssociationProgram.inject(T bean,
CreationalContext<T> env)
Configures the bean using the current program.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceAdapterProducer.inject(X instance,
CreationalContext<X> ctx) |
X |
ResourceAdapterProducer.produce(CreationalContext<X> ctx) |
Modifier and Type | Method and Description |
---|---|
<T> T |
TransactionScope.get(Contextual<T> bean,
CreationalContext<T> creationalContext) |
Modifier and Type | Method and Description |
---|---|
T |
Contextual.create(CreationalContext<T> creationalContext)
Creates a new instance for the Contextual's type.
|
void |
Contextual.destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance for the Contextual's type.
|
<T> T |
Context.get(Contextual<T> bean,
CreationalContext<T> creationalContext)
Internal SPI method to create a new instance of a bean, when given
a creational context.
|
Modifier and Type | Method and Description |
---|---|
<T> CreationalContext<T> |
BeanManager.createCreationalContext(Contextual<T> contextual)
Creates a new CreationalContext for instantiating a bean.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
BeanManager.getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx)
Internal callback during creation to get a new injection instance.
|
java.lang.Object |
BeanManager.getReference(Bean<?> bean,
java.lang.reflect.Type beanType,
CreationalContext<?> env)
Returns an instance for the given bean.
|
void |
InjectionTarget.inject(T instance,
CreationalContext<T> ctx)
Inject the bean.
|
T |
Producer.produce(CreationalContext<T> ctx)
Instantiate the bean.
|