Class DependentContextImpl

java.lang.Object
org.jboss.weld.contexts.unbound.DependentContextImpl
All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext, jakarta.enterprise.context.spi.Context, DependentContext

public class DependentContextImpl extends Object implements DependentContext
The dependent context
Author:
Nicklas Karlsson
  • Constructor Summary

    Constructors
    Constructor
    Description
    DependentContextImpl(org.jboss.weld.serialization.spi.ContextualStore contextualStore)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T> void
    addDependentInstance(T instance, jakarta.enterprise.context.spi.Contextual<T> contextual, WeldCreationalContext<T> creationalContext)
     
    void
    destroy(jakarta.enterprise.context.spi.Contextual<?> contextual)
     
    <T> T
    get(jakarta.enterprise.context.spi.Contextual<T> contextual)
     
    <T> T
    get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
    Overridden method always creating a new instance
    Class<? extends Annotation>
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DependentContextImpl

      public DependentContextImpl(org.jboss.weld.serialization.spi.ContextualStore contextualStore)
  • Method Details

    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Overridden method always creating a new instance
      Specified by:
      get in interface jakarta.enterprise.context.spi.Context
      Parameters:
      contextual - The bean to create
      creationalContext - The creation context
    • addDependentInstance

      protected <T> void addDependentInstance(T instance, jakarta.enterprise.context.spi.Contextual<T> contextual, WeldCreationalContext<T> creationalContext)
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual)
      Specified by:
      get in interface jakarta.enterprise.context.spi.Context
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface jakarta.enterprise.context.spi.Context
    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface jakarta.enterprise.context.spi.Context
    • destroy

      public void destroy(jakarta.enterprise.context.spi.Contextual<?> contextual)
      Specified by:
      destroy in interface jakarta.enterprise.context.spi.AlterableContext