Interface ModuleConfigPostProcessor


public interface ModuleConfigPostProcessor
This interface is to be implemented by any plugin for custom modification of a module after it is been configured but before it is frozen. This allows for overriding or adding properties after standard initialization.

The types of child configurations provided are ActionConfig, ExceptionConfig, ForwardConfig and MessageResourcesConfig. If interested in a particular configuration class, use the instanceof operator to check before casting.

Possible post-processors implementations may include property substitutions (${...}), querying additional configuration from a repository, extended configuration validation, preparing message resources for a particular domain/host, logging, etc.

Since:
Struts 1.4
Version:
$Rev$
See Also:
  • Method Details

    • postProcessAfterInitialization

      void postProcessAfterInitialization(BaseConfig config, ModuleConfig moduleConfig)
      Applies this post-processor to the specified configuration object after it has been initialized by Struts but before it is frozen.
      Parameters:
      config - the configuration
      moduleConfig - the parent module configuration
    • postProcessAfterInitialization

      void postProcessAfterInitialization(ModuleConfig moduleConfig)
      Modify the specified module after its standard initialization.
      Parameters:
      moduleConfig - the module configuration
    • postProcessBeforeInitialization

      void postProcessBeforeInitialization(BaseConfig config, ModuleConfig moduleConfig)
      Applies this post-processor to the specified configuration object before it has been initialized and processed by Struts (such as heirarchy extensions).
      Parameters:
      config - the configuration
      moduleConfig - the parent module configuration