Class ClasspathConfigurationProvider

java.lang.Object
org.apache.struts2.convention.ClasspathConfigurationProvider
All Implemented Interfaces:
com.opensymphony.xwork2.config.ConfigurationProvider, com.opensymphony.xwork2.config.ContainerProvider, com.opensymphony.xwork2.config.PackageProvider, org.apache.struts2.dispatcher.DispatcherListener

public class ClasspathConfigurationProvider extends Object implements com.opensymphony.xwork2.config.ConfigurationProvider, org.apache.struts2.dispatcher.DispatcherListener

Xwork will only reload configurations, if one ContainerProvider needs reloading, that's all this class does

  • Constructor Details

    • ClasspathConfigurationProvider

      public ClasspathConfigurationProvider(com.opensymphony.xwork2.inject.Container container)
  • Method Details

    • setDevMode

      public void setDevMode(String mode)
    • setReload

      public void setReload(String reload)
    • destroy

      public void destroy()
      Not used.
      Specified by:
      destroy in interface com.opensymphony.xwork2.config.ContainerProvider
    • init

      public void init(com.opensymphony.xwork2.config.Configuration configuration)
      Not used.
      Specified by:
      init in interface com.opensymphony.xwork2.config.ContainerProvider
      Specified by:
      init in interface com.opensymphony.xwork2.config.PackageProvider
      Parameters:
      configuration - configuration
    • register

      public void register(com.opensymphony.xwork2.inject.ContainerBuilder containerBuilder, com.opensymphony.xwork2.util.location.LocatableProperties locatableProperties) throws com.opensymphony.xwork2.config.ConfigurationException
      Does nothing.
      Specified by:
      register in interface com.opensymphony.xwork2.config.ContainerProvider
      Parameters:
      containerBuilder - container builder
      locatableProperties - locatable properties
      Throws:
      com.opensymphony.xwork2.config.ConfigurationException - in case of configuration errors
    • loadPackages

      public void loadPackages() throws com.opensymphony.xwork2.config.ConfigurationException
      Loads the packages using the ActionConfigBuilder.
      Specified by:
      loadPackages in interface com.opensymphony.xwork2.config.PackageProvider
      Throws:
      com.opensymphony.xwork2.config.ConfigurationException - in case of configuration errors
    • needsReload

      public boolean needsReload()
      Specified by:
      needsReload in interface com.opensymphony.xwork2.config.ContainerProvider
      Specified by:
      needsReload in interface com.opensymphony.xwork2.config.PackageProvider
      Returns:
      true if devMode, reload and actionConfigBuilder.needsReload()
    • dispatcherInitialized

      public void dispatcherInitialized(org.apache.struts2.dispatcher.Dispatcher du)
      Specified by:
      dispatcherInitialized in interface org.apache.struts2.dispatcher.DispatcherListener
    • dispatcherDestroyed

      public void dispatcherDestroyed(org.apache.struts2.dispatcher.Dispatcher du)
      Specified by:
      dispatcherDestroyed in interface org.apache.struts2.dispatcher.DispatcherListener