Package org.jboss.weld.contexts
Interface WeldCreationalContext<T>
- Type Parameters:
T-
- All Superinterfaces:
jakarta.enterprise.context.spi.CreationalContext<T>,org.jboss.weld.construction.api.WeldCreationalContext<T>
- All Known Implementing Classes:
CreationalContextImpl
public interface WeldCreationalContext<T>
extends org.jboss.weld.construction.api.WeldCreationalContext<T>
- Author:
- pmuir
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependentInstance(ContextualInstance<?> contextualInstance) voidaddDependentResourceReference(org.jboss.weld.injection.spi.ResourceReference<?> resourceReference) Register aResourceReferenceas a dependency.booleandestroyDependentInstance(T instance) Destroys dependent instancejakarta.enterprise.context.spi.Contextual<T><S> WeldCreationalContext<S>getCreationalContext(jakarta.enterprise.context.spi.Contextual<S> contextual) Returns an unmodifiable list of dependent instances.<S> SgetIncompleteInstance(jakarta.enterprise.context.spi.Contextual<S> bean) <S> WeldCreationalContext<S>getProducerReceiverCreationalContext(jakarta.enterprise.context.spi.Contextual<S> contextual) The returnedCreationalContextshares nothing but incomplete instances.voidrelease()Methods inherited from interface jakarta.enterprise.context.spi.CreationalContext
pushMethods inherited from interface org.jboss.weld.construction.api.WeldCreationalContext
isConstructorInterceptionSuppressed, registerAroundConstructCallback, setConstructorInterceptionSuppressed
-
Method Details
-
getCreationalContext
<S> WeldCreationalContext<S> getCreationalContext(jakarta.enterprise.context.spi.Contextual<S> contextual) -
getProducerReceiverCreationalContext
<S> WeldCreationalContext<S> getProducerReceiverCreationalContext(jakarta.enterprise.context.spi.Contextual<S> contextual) The returnedCreationalContextshares nothing but incomplete instances.- Parameters:
contextual-- Returns:
- the
CreationalContextfor a producer reciever
-
getIncompleteInstance
<S> S getIncompleteInstance(jakarta.enterprise.context.spi.Contextual<S> bean) -
addDependentInstance
-
release
void release()- Specified by:
releasein interfacejakarta.enterprise.context.spi.CreationalContext<T>
-
getParentCreationalContext
WeldCreationalContext<?> getParentCreationalContext()- Returns:
- the parent
CreationalContextor null if there isn't any parent.
-
getContextual
jakarta.enterprise.context.spi.Contextual<T> getContextual()- Returns:
- the
Contextualfor which thisCreationalContextis created.
-
getDependentInstances
List<ContextualInstance<?>> getDependentInstances()Returns an unmodifiable list of dependent instances. -
destroyDependentInstance
Destroys dependent instance- Parameters:
instance-- Returns:
- true if the instance was destroyed, false otherwise
-
addDependentResourceReference
void addDependentResourceReference(org.jboss.weld.injection.spi.ResourceReference<?> resourceReference) Register aResourceReferenceas a dependency.ResourceReference.release()will be called on everyResourceReferenceonce thisCreationalContextinstance is released.
-