Class PlugInConfigContextAdapter

java.lang.Object
org.apache.tiles.request.jakarta.servlet.ServletApplicationContext
org.apache.struts.tiles2.util.PlugInConfigContextAdapter
All Implemented Interfaces:
org.apache.tiles.request.ApplicationContext

public class PlugInConfigContextAdapter extends org.apache.tiles.request.jakarta.servlet.ServletApplicationContext
Adapts a PlugInConfig object to become a ServletContext object, exposing init parameters methods.
  • Constructor Details

    • PlugInConfigContextAdapter

      public PlugInConfigContextAdapter(PlugInConfig plugInConfigObject, ServletContext servletContext)
      Constructor.
      Parameters:
      plugInConfigObject - The plugin config object to use.
      servletContext - The servlet context to use.
  • Method Details

    • getInitParams

      public Map<String,String> getInitParams()
      Specified by:
      getInitParams in interface org.apache.tiles.request.ApplicationContext
      Overrides:
      getInitParams in class org.apache.tiles.request.jakarta.servlet.ServletApplicationContext
    • getPlugInConfigObject

      public PlugInConfig getPlugInConfigObject()
      Returns the internal plugin config object.
      Returns:
      the internal plugin config object