Class NoopContainer

java.lang.Object
org.joinfaces.weld.NoopContainer
All Implemented Interfaces:
org.jboss.weld.environment.servlet.Container

public class NoopContainer extends Object implements org.jboss.weld.environment.servlet.Container
Simple Container implementation which does nothing.

The main purpose of this class is to stop weld from re-injecting fields in AdminFilter

  • Field Summary

    Fields inherited from interface org.jboss.weld.environment.servlet.Container

    CONTEXT_PARAM_CONTAINER_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy(org.jboss.weld.environment.servlet.ContainerContext context)
     
    void
    initialize(org.jboss.weld.environment.servlet.ContainerContext context)
     
    boolean
    touch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.environment.servlet.ContainerContext context)
     

    Methods inherited from class java.lang.Object

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

    • NoopContainer

      public NoopContainer()
  • Method Details

    • touch

      public boolean touch(org.jboss.weld.resources.spi.ResourceLoader resourceLoader, org.jboss.weld.environment.servlet.ContainerContext context)
      Specified by:
      touch in interface org.jboss.weld.environment.servlet.Container
    • initialize

      public void initialize(org.jboss.weld.environment.servlet.ContainerContext context)
      Specified by:
      initialize in interface org.jboss.weld.environment.servlet.Container
    • destroy

      public void destroy(org.jboss.weld.environment.servlet.ContainerContext context)
      Specified by:
      destroy in interface org.jboss.weld.environment.servlet.Container