Class CreationalContextImpl<T>

    • Constructor Detail

      • CreationalContextImpl

        public CreationalContextImpl​(jakarta.enterprise.context.spi.Contextual<T> contextual)
    • Method Detail

      • push

        public void push​(T incompleteInstance)
        Specified by:
        push in interface jakarta.enterprise.context.spi.CreationalContext<T>
      • containsIncompleteInstance

        public boolean containsIncompleteInstance​(jakarta.enterprise.context.spi.Contextual<?> bean)
      • release

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

        public void release​(jakarta.enterprise.context.spi.Contextual<T> contextual,
                            T instance)
      • getDependentInstances

        public List<org.jboss.weld.context.api.ContextualInstance<?>> getDependentInstances()
        Returns an unmodifiable list of dependent instances.
        Specified by:
        getDependentInstances in interface WeldCreationalContext<T>
      • addDependentResourceReference

        public 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.
        Specified by:
        addDependentResourceReference in interface WeldCreationalContext<T>
      • destroyDependentInstance

        public boolean destroyDependentInstance​(T instance)
        Destroys dependent instance
        Specified by:
        destroyDependentInstance in interface WeldCreationalContext<T>
        Parameters:
        instance -
        Returns:
        true if the instance was destroyed, false otherwise
      • getContextual

        public jakarta.enterprise.context.spi.Contextual<T> getContextual()
        Specified by:
        getContextual in interface WeldCreationalContext<T>
        Returns:
        the Contextual for which this CreationalContext is created.
      • getAroundConstructCallbacks

        public List<org.jboss.weld.construction.api.AroundConstructCallback<T>> getAroundConstructCallbacks()
      • setConstructorInterceptionSuppressed

        public void setConstructorInterceptionSuppressed​(boolean value)
        Specified by:
        setConstructorInterceptionSuppressed in interface org.jboss.weld.construction.api.WeldCreationalContext<T>
      • isConstructorInterceptionSuppressed

        public boolean isConstructorInterceptionSuppressed()
        Specified by:
        isConstructorInterceptionSuppressed in interface org.jboss.weld.construction.api.WeldCreationalContext<T>
      • registerAroundConstructCallback

        public void registerAroundConstructCallback​(org.jboss.weld.construction.api.AroundConstructCallback<T> callback)
        Specified by:
        registerAroundConstructCallback in interface org.jboss.weld.construction.api.WeldCreationalContext<T>
      • getAroundConstructInterceptionContext

        public InterceptionContext getAroundConstructInterceptionContext()
        Returns:
        the interception context used for Weld-managed AroundConstruct interceptors or null if no such interceptors were applied
      • setAroundConstructInterceptionContext

        public void setAroundConstructInterceptionContext​(InterceptionContext aroundConstructInterceptionContext)