Interface WeldHotswapContext


  • public interface WeldHotswapContext
    The Interface WeldHotswapContext.
    Author:
    alpapad@gmail.com
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void $$ha$addBeanToReloadWeld​(javax.enterprise.context.spi.Contextual<Object> bean)
      Adds a bean to the set of beans to be redefined.
      Set<javax.enterprise.context.spi.Contextual<Object>> $$ha$getBeansToReloadWeld()
      Gets the Weld beans to be reloaded.
      boolean $$ha$isActiveWeld()
      The original isActive() method (renamed).
      void $$ha$reloadWeld()
      Redefines the beans which have changed.
      void destroy​(javax.enterprise.context.spi.Contextual<?> contextual)
      Destroy the existing contextual instance.
      <T> T get​(javax.enterprise.context.spi.Contextual<T> contextual)
      Return an existing instance of a certain contextual type or a null value.
      boolean isActive()
      Determines if the context object is active.
    • Method Detail

      • destroy

        void destroy​(javax.enterprise.context.spi.Contextual<?> contextual)
        Destroy the existing contextual instance. If there is no existing instance, no action is taken.
        Parameters:
        contextual - the contextual type
        Throws:
        javax.enterprise.context.ContextNotActiveException - if the context is not active
      • isActive

        boolean isActive()
        Determines if the context object is active. If the context is active, then $$ha$reload() is called.
        Returns:
        true if the context is active, or false otherwise.
      • get

        <T> T get​(javax.enterprise.context.spi.Contextual<T> contextual)
        Return an existing instance of a certain contextual type or a null value.
        Type Parameters:
        T - the type of the contextual type
        Parameters:
        contextual - the contextual type
        Returns:
        the contextual instance, or a null value
        Throws:
        javax.enterprise.context.ContextNotActiveException - if the context is not active
      • $$ha$addBeanToReloadWeld

        void $$ha$addBeanToReloadWeld​(javax.enterprise.context.spi.Contextual<Object> bean)
        Adds a bean to the set of beans to be redefined.
        Parameters:
        bean -
      • $$ha$getBeansToReloadWeld

        Set<javax.enterprise.context.spi.Contextual<Object>> $$ha$getBeansToReloadWeld()
        Gets the Weld beans to be reloaded. The naming must be Weld-specific since OWB plugin patches the contexts as well.
        Returns:
        the Weld beans to be reloaded
      • $$ha$reloadWeld

        void $$ha$reloadWeld()
        Redefines the beans which have changed. The naming must be Weld-specific since OWB plugin patches the contexts as well.
      • $$ha$isActiveWeld

        boolean $$ha$isActiveWeld()
        The original isActive() method (renamed). The naming must be Weld-specific since OWB plugin patches the contexts as well.
        Returns: