Class DependentContextImpl

    • Constructor Detail

      • DependentContextImpl

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

      • get

        public <T> T get​(Contextual<T> contextual,
                         CreationalContext<T> creationalContext)
        Overridden method always creating a new instance
        Specified by:
        get in interface Context
        Type Parameters:
        T - the type of contextual type
        Parameters:
        contextual - The bean to create
        creationalContext - The creation context
        Returns:
        the contextual instance
      • get

        public <T> T get​(Contextual<T> contextual)
        Description copied from interface: Context
        Return an existing instance of a certain contextual type or a null value.
        Specified by:
        get in interface Context
        Type Parameters:
        T - the type of the contextual type
        Parameters:
        contextual - the contextual type
        Returns:
        the contextual instance, or a null value
      • isActive

        public boolean isActive()
        Description copied from interface: Context
        Determines if the context object is active.
        Specified by:
        isActive in interface Context
        Returns:
        true if the context is active, or false otherwise.
      • getScope

        public Class<? extends Annotation> getScope()
        Description copied from interface: Context
        Get the scope type of the context object.
        Specified by:
        getScope in interface Context
        Returns:
        the scope
      • destroy

        public void destroy​(Contextual<?> contextual)
        Description copied from interface: AlterableContext

        Destroy the existing contextual instance. If there is no existing instance, no action is taken.

        Specified by:
        destroy in interface AlterableContext
        Parameters:
        contextual - the contextual type