| Modifier and Type | Method and Description |
|---|---|
T |
Contextual.create(CreationalContext<T> creationalContext)
Create a new instance of the contextual type.
|
void |
Contextual.destroy(T instance,
CreationalContext<T> creationalContext)
Destroy an instance of the contextual type.
|
<T> T |
Context.get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Return an existing instance of certain contextual type or create a new instance by calling
Contextual.create(CreationalContext) and return the new instance. |
| Modifier and Type | Method and Description |
|---|---|
<T> CreationalContext<T> |
BeanManager.createCreationalContext(Contextual<T> contextual)
Obtain an instance of a
CreationalContext for the given
contextual type, or for a non-contextual object. |
| Modifier and Type | Method and Description |
|---|---|
Object |
BeanManager.getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx)
Obtains an injectable reference for a certain injection point.
|
Object |
BeanManager.getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx)
Obtains a contextual reference for a certain bean and a certain bean type of the bean.
|
void |
InjectionTarget.inject(T instance,
CreationalContext<T> ctx)
Performs dependency injection upon the given object.
|
T |
Producer.produce(CreationalContext<T> ctx)
Causes an instance to be produced via the
Producer. |
| Modifier and Type | Method and Description |
|---|---|
T |
SyntheticProducerBean.create(CreationalContext<T> creationalContext) |
T |
SyntheticClassBean.create(CreationalContext<T> creationalContext) |
T |
SessionBean.create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
T |
ManagedBean.create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
T |
AbstractProducerBean.create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
void |
SyntheticProducerBean.destroy(T instance,
CreationalContext<T> creationalContext) |
void |
SyntheticClassBean.destroy(T instance,
CreationalContext<T> creationalContext) |
void |
SessionBean.destroy(T instance,
CreationalContext<T> creationalContext) |
void |
RIBean.destroy(T instance,
CreationalContext<T> creationalContext) |
void |
ManagedBean.destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance of the bean
|
void |
AbstractProducerBean.destroy(T instance,
CreationalContext<T> creationalContext) |
static <T> T |
ContextualInstance.get(Bean<T> bean,
BeanManagerImpl manager,
CreationalContext<?> ctx)
Shortcut for obtaining contextual instances with semantics equivalent to:
if (ctx == null) {
ctx = manager.createCreationalContext(bean);
}
manager.getContext(bean.getScope()).get(bean, ctx);
|
static <T> T |
ContextualInstance.get(RIBean<T> bean,
BeanManagerImpl manager,
CreationalContext<?> ctx) |
void |
DisposalMethod.invokeDisposeMethod(Object receiver,
Object instance,
CreationalContext<?> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
protected CreationalContext<? super T> |
AbstractFacade.getCreationalContext() |
protected CreationalContext<? super T> |
AbstractFacade.AbstractFacadeSerializationProxy.getCreationalContext() |
| Modifier and Type | Method and Description |
|---|---|
BeanManagerImpl |
BeanManagerImplBean.create(CreationalContext<BeanManagerImpl> creationalContext) |
BeanManagerProxy |
BeanManagerBean.create(CreationalContext<BeanManagerProxy> creationalContext) |
Extension |
ExtensionBean.create(CreationalContext<Extension> creationalContext) |
T |
ContextBean.create(CreationalContext<T> creationalContext) |
T |
AbstractDecorableBuiltInBean.create(CreationalContext<T> creationalContext) |
T |
AbstractBuiltInMetadataBean.create(CreationalContext<T> creationalContext) |
void |
AbstractFacadeBean.destroy(T instance,
CreationalContext<T> creationalContext) |
Object |
BeanManagerProxy.getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx) |
protected WeldCreationalContext<?> |
AbstractBuiltInMetadataBean.getParentCreationalContext(CreationalContext<?> ctx) |
Object |
BeanManagerProxy.getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx) |
protected Bean<?> |
InterceptedBeanMetadataBean.newInstance(InjectionPoint ip,
CreationalContext<Bean<?>> ctx) |
protected Bean<?> |
BeanMetadataBean.newInstance(InjectionPoint ip,
CreationalContext<Bean<?>> creationalContext) |
protected Conversation |
ConversationBean.newInstance(InjectionPoint ip,
CreationalContext<Conversation> creationalContext) |
protected Decorator<?> |
DecoratorMetadataBean.newInstance(InjectionPoint ip,
CreationalContext<Decorator<?>> creationalContext) |
protected Event<?> |
EventBean.newInstance(InjectionPoint ip,
CreationalContext<Event<?>> creationalContext) |
protected EventMetadata |
EventMetadataBean.newInstance(InjectionPoint ip,
CreationalContext<EventMetadata> creationalContext) |
protected InjectionPoint |
InjectionPointBean.newInstance(InjectionPoint ip,
CreationalContext<InjectionPoint> creationalContext) |
protected Instance<?> |
InstanceBean.newInstance(InjectionPoint injectionPoint,
CreationalContext<Instance<?>> creationalContext) |
protected Interceptor<?> |
InterceptorMetadataBean.newInstance(InjectionPoint ip,
CreationalContext<Interceptor<?>> creationalContext) |
protected abstract T |
AbstractDecorableBuiltInBean.newInstance(InjectionPoint ip,
CreationalContext<T> creationalContext) |
protected abstract T |
AbstractBuiltInMetadataBean.newInstance(InjectionPoint ip,
CreationalContext<T> creationalContext) |
static <I> Instance<I> |
InstanceImpl.of(InjectionPoint injectionPoint,
CreationalContext<I> creationalContext,
BeanManagerImpl beanManager) |
| Constructor and Description |
|---|
AbstractFacade(InjectionPoint injectionPoint,
CreationalContext<? super T> creationalContext,
BeanManagerImpl beanManager) |
| Modifier and Type | Method and Description |
|---|---|
T |
StaticEEResourceProducerField.create(CreationalContext<T> creationalContext) |
T |
EEResourceProducerField.create(CreationalContext<T> creationalContext) |
protected T |
AbstractEEBean.newInstance(InjectionPoint ip,
CreationalContext<T> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
T |
CdiInterceptorFactory.create(CreationalContext<T> ctx,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
DecoratorProxyMethodHandler |
DecorationHelper.createMethodHandler(InjectionPoint injectionPoint,
CreationalContext<?> creationalContext,
Decorator<Object> decorator) |
void |
EnterpriseBeanInstance.destroy(Marker marker,
SessionBean<?> enterpriseBean,
CreationalContext<?> creationalContext) |
T |
DecorationHelper.getNextDelegate(InjectionPoint injectionPoint,
CreationalContext<?> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
BeanBuilderImpl.createWith(java.util.function.Function<CreationalContext<U>,U> callback) |
BeanBuilder<T> |
BeanBuilderImpl.destroyWith(java.util.function.BiConsumer<T,CreationalContext<T>> callback) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
WeldCreationalContext<T>
Extended version of
CreationalContext which gives the integrator additional control over the process of constructing an instance. |
| Modifier and Type | Class and Description |
|---|---|
class |
CreationalContextImpl<T> |
| Modifier and Type | Method and Description |
|---|---|
CreationalContext<I> |
SerializableContextualInstanceImpl.getCreationalContext() |
| Modifier and Type | Method and Description |
|---|---|
T |
ForwardingContextual.create(CreationalContext<T> creationalContext) |
void |
ForwardingContextual.destroy(T instance,
CreationalContext<T> creationalContext) |
<T> T |
AbstractContext.get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Get the bean if it exists in the contexts.
|
| Constructor and Description |
|---|
SerializableContextualInstanceImpl(C contextual,
I instance,
CreationalContext<I> creationalContext,
ContextualStore contextualStore) |
SerializableContextualInstanceImpl(SerializableContextual<C,I> contextual,
I instance,
CreationalContext<I> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
CreationalContext<T> |
ContextualInstance.getCreationalContext() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
DependentContextImpl.get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Overridden method always creating a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
ObserverMethodImpl.getReceiver(CreationalContext<X> creationalContext) |
protected Object |
ExtensionObserverMethodImpl.getReceiver(CreationalContext<X> ctx) |
protected void |
ObserverMethodImpl.sendEvent(T event,
Object receiver,
CreationalContext<?> creationalContext) |
protected void |
ExtensionObserverMethodImpl.sendEvent(T event,
Object receiver,
CreationalContext<?> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
BeanBuilder.createWith(java.util.function.Function<CreationalContext<U>,U> callback) |
BeanBuilder<T> |
BeanBuilder.destroyWith(java.util.function.BiConsumer<T,CreationalContext<T>> callback) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
ConstructorInjectionPoint.getParameterValues(BeanManagerImpl manager,
CreationalContext<?> ctx,
CreationalContext<?> transientReference)
Helper method for getting the current parameter values from a list of annotated parameters.
|
Object[] |
ConstructorInjectionPoint.getParameterValues(BeanManagerImpl manager,
CreationalContext<?> ctx,
CreationalContext<?> transientReference)
Helper method for getting the current parameter values from a list of annotated parameters.
|
T |
ResourceInjection.getResourceReference(CreationalContext<?> ctx) |
T |
ParameterInjectionPointImpl.getValueToInject(BeanManagerImpl manager,
CreationalContext<?> creationalContext) |
T |
ParameterInjectionPoint.getValueToInject(BeanManagerImpl manager,
CreationalContext<?> creationalContext) |
void |
FieldInjectionPoint.inject(Object declaringInstance,
BeanManagerImpl manager,
CreationalContext<?> creationalContext) |
void |
ForwardingInjectionTarget.inject(T instance,
CreationalContext<T> ctx) |
void |
ResourceInjection.injectResourceReference(Object declaringInstance,
CreationalContext<?> ctx) |
abstract <T> void |
MethodInvocationStrategy.invoke(Object receiver,
MethodInjectionPoint<?,?> method,
T instance,
BeanManagerImpl manager,
CreationalContext<?> creationalContext) |
abstract T |
MethodInjectionPoint.invoke(Object receiver,
Object specialValue,
BeanManagerImpl manager,
CreationalContext<?> ctx,
Class<? extends RuntimeException> exceptionTypeToThrow)
Invokes the method.
|
T |
ConstructorInjectionPoint.newInstance(BeanManagerImpl manager,
CreationalContext<?> ctx) |
T |
ForwardingInjectionTarget.produce(CreationalContext<T> ctx) |
| Modifier and Type | Method and Description |
|---|---|
T |
SpecialParameterInjectionPoint.getValueToInject(BeanManagerImpl manager,
CreationalContext<?> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
SubclassDecoratorApplyingInstantiator.applyDecorators(T instance,
CreationalContext<T> creationalContext,
InjectionPoint originalInjectionPoint,
BeanManagerImpl manager) |
protected abstract T |
AbstractDecoratorApplyingInstantiator.applyDecorators(T instance,
CreationalContext<T> creationalContext,
InjectionPoint originalInjectionPoint,
BeanManagerImpl manager) |
protected T |
AbstractDecoratorApplyingInstantiator.getOuterDelegate(T instance,
CreationalContext<T> creationalContext,
InjectionPoint originalInjectionPoint,
BeanManagerImpl manager) |
protected Object |
AbstractMemberProducer.getReceiver(CreationalContext<?> productCreationalContext,
CreationalContext<?> receiverCreationalContext)
Gets the receiver of the product.
|
protected Object |
AbstractMemberProducer.getReceiver(CreationalContext<?> productCreationalContext,
CreationalContext<?> receiverCreationalContext)
Gets the receiver of the product.
|
void |
DecoratorInjectionTarget.inject(T instance,
CreationalContext<T> ctx) |
void |
BasicInjectionTarget.inject(T instance,
CreationalContext<T> ctx) |
void |
StatelessSessionBeanInjector.inject(T instance,
CreationalContext<T> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<T> type,
InjectionTarget<T> injectionTarget) |
void |
ResourceInjector.inject(T instance,
CreationalContext<T> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<T> type,
InjectionTarget<T> injectionTarget) |
void |
Injector.inject(T instance,
CreationalContext<T> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<T> type,
InjectionTarget<T> injectionTarget) |
void |
DefaultInjector.inject(T instance,
CreationalContext<T> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<T> type,
InjectionTarget<T> injectionTarget) |
T |
InterceptorApplyingInstantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
Instantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
ForwardingInstantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
ConstructorInterceptionInstantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
AbstractInstantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
AbstractDecoratorApplyingInstantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
NonProducibleInjectionTarget.produce(CreationalContext<T> ctx) |
T |
BeanInjectionTarget.produce(CreationalContext<T> ctx) |
T |
BasicInjectionTarget.produce(CreationalContext<T> ctx) |
T |
AbstractMemberProducer.produce(CreationalContext<T> ctx) |
protected T |
ProducerMethodProducer.produce(Object receiver,
CreationalContext<T> ctx) |
T |
ProducerFieldProducer.produce(Object receiver,
CreationalContext<T> creationalContext) |
protected abstract T |
AbstractMemberProducer.produce(Object receiver,
CreationalContext<T> ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
SessionBeanInjectionTarget.inject(T instance,
CreationalContext<T> ctx) |
T |
SessionBeanProxyInstantiator.newInstance(CreationalContext<T> ctx,
BeanManagerImpl manager) |
T |
SessionBeanInjectionTarget.produce(CreationalContext<T> ctx) |
| Modifier and Type | Method and Description |
|---|---|
static InterceptionContext |
InterceptionContext.forConstructorInterception(InterceptionModel interceptionModel,
CreationalContext<?> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<?> type) |
static InterceptionContext |
InterceptionContext.forNonConstructorInterception(InterceptionModel interceptionModel,
CreationalContext<?> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
T |
PlainInterceptorFactory.create(CreationalContext<T> ctx,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
T |
InterceptorFactory.create(CreationalContext<T> ctx,
BeanManagerImpl manager)
Create a new instance of the interceptor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
BeanManagerImpl.getInjectableReference(InjectionPoint injectionPoint,
Bean<?> resolvedBean,
CreationalContext<?> creationalContext)
Get a reference, registering the injection point used.
|
Object |
BeanManagerImpl.getInjectableReference(InjectionPoint injectionPoint,
CreationalContext<?> creationalContext) |
<T> Instance<Object> |
BeanManagerImpl.getInstance(CreationalContext<?> ctx) |
Object |
BeanManagerImpl.getReference(Bean<?> bean,
Type requestedType,
CreationalContext<?> creationalContext) |
Object |
BeanManagerImpl.getReference(Bean<?> bean,
Type requestedType,
CreationalContext<?> creationalContext,
boolean noProxy) |
Object |
BeanManagerImpl.getReference(InjectionPoint injectionPoint,
Bean<?> resolvedBean,
CreationalContext<?> creationalContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<C extends Contextual<I>,I> |
ContextualStoreImpl.getSerializableContextualInstance(Contextual<I> contextual,
I instance,
CreationalContext<I> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
<C extends Contextual<I>,I> |
ContextualStore.getSerializableContextualInstance(Contextual<I> contextual,
I instance,
CreationalContext<I> creationalContext)
Returns a
SerializableContextualInstance that corresponds to the given
instance and Contextual |
| Modifier and Type | Method and Description |
|---|---|
CreationalContext<I> |
SerializableContextualInstance.getCreationalContext() |
| Modifier and Type | Method and Description |
|---|---|
<T> CreationalContext<T> |
ForwardingBeanManager.createCreationalContext(Contextual<T> contextual) |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
Beans.callInitializers(T instance,
CreationalContext<T> creationalContext,
BeanManagerImpl manager,
Iterable<? extends MethodInjectionPoint<?,?>> initializerMethods)
Calls all initializers of the bean
|
<T> T |
ForwardingContext.get(Contextual<T> contextual,
CreationalContext<T> creationalContext) |
Object |
ForwardingBeanManager.getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx) |
static <T> T |
Decorators.getOuterDelegate(Bean<T> bean,
T instance,
CreationalContext<T> creationalContext,
Class<T> proxyClass,
InjectionPoint originalInjectionPoint,
BeanManagerImpl manager,
List<Decorator<?>> decorators) |
Object |
ForwardingBeanManager.getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx) |
static <T> void |
Beans.injectBoundFields(T instance,
CreationalContext<T> creationalContext,
BeanManagerImpl manager,
Iterable<? extends FieldInjectionPoint<?,?>> injectableFields)
Injects bound fields
|
static <T> void |
Beans.injectEEFields(Iterable<Set<ResourceInjection<?>>> resourceInjectionsHierarchy,
T beanInstance,
CreationalContext<T> ctx)
Injects EJBs and other EE resources.
|
static <T> void |
Beans.injectFieldsAndInitializers(T instance,
CreationalContext<T> ctx,
BeanManagerImpl beanManager,
List<? extends Iterable<? extends FieldInjectionPoint<?,?>>> injectableFields,
List<? extends Iterable<? extends MethodInjectionPoint<?,?>>> initializerMethods) |
| Modifier and Type | Method and Description |
|---|---|
T |
IsolatedForwardingBean.create(CreationalContext<T> creationalContext) |
void |
IsolatedForwardingBean.destroy(T instance,
CreationalContext<T> creationalContext) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpServletRequest |
HttpServletRequestBean.newInstance(InjectionPoint ip,
CreationalContext<HttpServletRequest> creationalContext) |
protected HttpSession |
HttpSessionBean.newInstance(InjectionPoint ip,
CreationalContext<HttpSession> creationalContext) |
protected ServletContext |
ServletContextBean.newInstance(InjectionPoint ip,
CreationalContext<ServletContext> creationalContext) |
Copyright © 2015. All Rights Reserved.