Class ModuleConfigFactory

java.lang.Object
org.apache.struts.config.ModuleConfigFactory
Direct Known Subclasses:
DefaultModuleConfigFactory

public abstract class ModuleConfigFactory extends Object
A factory interface for creating ModuleConfigs.
Version:
$Rev$ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) $
See Also:
  • Field Details

    • clazz

      protected static Class<? extends ModuleConfigFactory> clazz
      The Java class to be used for ModuleConfigFactory instances.
    • factoryClass

      protected static String factoryClass
      The fully qualified class name to be used for ModuleConfigFactory instances.
  • Constructor Details

    • ModuleConfigFactory

      public ModuleConfigFactory()
  • Method Details

    • createModuleConfig

      public abstract ModuleConfig createModuleConfig(String prefix)
      Create and return a newly instansiated ModuleConfig. This method must be implemented by concrete subclasses.
      Parameters:
      prefix - Module prefix for Configuration
    • getFactoryClass

      public static String getFactoryClass()
      The fully qualified class name that is used for ModuleConfigFactory instances.
      Returns:
      class name that is used for ModuleConfigFactory instances
    • setFactoryClass

      public static void setFactoryClass(String factoryClass)
      Set the fully qualified class name that is used for ModuleConfigFactory instances.
      Parameters:
      factoryClass - name that is used for ModuleConfigFactory instances
    • createFactory

      public static ModuleConfigFactory createFactory()
      Create and return a ModuleConfigFactory instance of the appropriate class, which can be used to create customized ModuleConfig instances. If no such factory can be created, return null instead.