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 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 returned CreationalContext shares nothing but incomplete instances.
      Parameters:
      contextual -
      Returns:
      the CreationalContext for a producer reciever
    • getIncompleteInstance

      <S> S getIncompleteInstance(jakarta.enterprise.context.spi.Contextual<S> bean)
    • addDependentInstance

      void addDependentInstance(org.jboss.weld.context.api.ContextualInstance<?> contextualInstance)
    • release

      void release()
      Specified by:
      release in interface jakarta.enterprise.context.spi.CreationalContext<T>
    • getParentCreationalContext

      WeldCreationalContext<?> getParentCreationalContext()
      Returns:
      the parent CreationalContext or null if there isn't any parent.
    • getContextual

      jakarta.enterprise.context.spi.Contextual<T> getContextual()
      Returns:
      the Contextual for which this CreationalContext is created.
    • getDependentInstances

      List<org.jboss.weld.context.api.ContextualInstance<?>> getDependentInstances()
      Returns an unmodifiable list of dependent instances.
    • destroyDependentInstance

      boolean destroyDependentInstance(T instance)
      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 a ResourceReference as a dependency. ResourceReference.release() will be called on every ResourceReference once this CreationalContext instance is released.