Class EnvConfiguration

java.lang.Object
org.eclipse.jetty.ee11.webapp.AbstractConfiguration
org.eclipse.jetty.ee11.plus.webapp.EnvConfiguration
All Implemented Interfaces:
org.eclipse.jetty.ee11.webapp.Configuration

public class EnvConfiguration extends org.eclipse.jetty.ee11.webapp.AbstractConfiguration
EnvConfiguration
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.ee11.webapp.AbstractConfiguration

    org.eclipse.jetty.ee11.webapp.AbstractConfiguration.Builder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bindEnvEntries(org.eclipse.jetty.ee11.webapp.WebAppContext context)
    Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them.
    void
    configure(org.eclipse.jetty.ee11.webapp.WebAppContext context)
     
    protected void
    createEnvContext(org.eclipse.jetty.ee11.webapp.WebAppContext wac)
     
    void
    deconfigure(org.eclipse.jetty.ee11.webapp.WebAppContext context)
    Remove jndi setup from start
    void
    destroy(org.eclipse.jetty.ee11.webapp.WebAppContext context)
    Remove all jndi setup
    void
    preConfigure(org.eclipse.jetty.ee11.webapp.WebAppContext context)
     

    Methods inherited from class org.eclipse.jetty.ee11.webapp.AbstractConfiguration

    abort, getDependencies, getDependents, getHiddenClasses, getProtectedClasses, isEnabledByDefault, postConfigure

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.ee11.webapp.Configuration

    isAvailable, replaces
  • Field Details

  • Constructor Details

    • EnvConfiguration

      public EnvConfiguration()
  • Method Details

    • preConfigure

      public void preConfigure(org.eclipse.jetty.ee11.webapp.WebAppContext context) throws Exception
      Specified by:
      preConfigure in interface org.eclipse.jetty.ee11.webapp.Configuration
      Overrides:
      preConfigure in class org.eclipse.jetty.ee11.webapp.AbstractConfiguration
      Throws:
      Exception
    • configure

      public void configure(org.eclipse.jetty.ee11.webapp.WebAppContext context) throws Exception
      Specified by:
      configure in interface org.eclipse.jetty.ee11.webapp.Configuration
      Overrides:
      configure in class org.eclipse.jetty.ee11.webapp.AbstractConfiguration
      Throws:
      Exception
    • deconfigure

      public void deconfigure(org.eclipse.jetty.ee11.webapp.WebAppContext context) throws Exception
      Remove jndi setup from start
      Specified by:
      deconfigure in interface org.eclipse.jetty.ee11.webapp.Configuration
      Overrides:
      deconfigure in class org.eclipse.jetty.ee11.webapp.AbstractConfiguration
      Throws:
      Exception - if unable to deconfigure
    • destroy

      public void destroy(org.eclipse.jetty.ee11.webapp.WebAppContext context) throws Exception
      Remove all jndi setup
      Specified by:
      destroy in interface org.eclipse.jetty.ee11.webapp.Configuration
      Overrides:
      destroy in class org.eclipse.jetty.ee11.webapp.AbstractConfiguration
      Throws:
      Exception - if unable to destroy
    • bindEnvEntries

      public void bindEnvEntries(org.eclipse.jetty.ee11.webapp.WebAppContext context) throws NamingException
      Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them.

      We first bind EnvEntries declared in Server scope, then WebAppContext scope.

      Parameters:
      context - the context to use for the object scope
      Throws:
      NamingException - if unable to bind env entries
    • createEnvContext

      protected void createEnvContext(org.eclipse.jetty.ee11.webapp.WebAppContext wac) throws NamingException
      Throws:
      NamingException