Apache Struts API Documentation: Class ModuleConfigFactory

Apache Struts API


org.apache.struts.config Class ModuleConfigFactory

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

public abstract class ModuleConfigFactory
extends java.lang.Object

A factory interface for creating ModuleConfigs.

Version:
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
See Also:
ModuleConfig

Field Summary
protected static java.lang.Class clazz
          The Java class to be used for ModuleConfigFactory instances.
protected static java.lang.String factoryClass
          The fully qualified class name to be used for ModuleConfigFactory instances.
private static org.apache.commons.logging.Log LOG
          Commons Logging instance.
 
Constructor Summary
ModuleConfigFactory()
           
 
Method Summary
static ModuleConfigFactory createFactory()
          Create and return a ModuleConfigFactory instance of the appropriate class, which can be used to create customized ModuleConfig instances.
abstract  ModuleConfig createModuleConfig(java.lang.String prefix)
          Create and return a newly instansiated ModuleConfig.
static java.lang.String getFactoryClass()
          The fully qualified class name that is used for ModuleConfigFactory instances.
static void setFactoryClass(java.lang.String factoryClass)
          Set the fully qualified class name that is used for ModuleConfigFactory instances.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

clazz

protected static java.lang.Class clazz
The Java class to be used for ModuleConfigFactory instances.

LOG

private static final org.apache.commons.logging.Log LOG
Commons Logging instance.

factoryClass

protected static java.lang.String factoryClass
The fully qualified class name to be used for ModuleConfigFactory instances.
Constructor Detail

ModuleConfigFactory

public ModuleConfigFactory()
Method Detail

createModuleConfig

public abstract ModuleConfig createModuleConfig(java.lang.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 java.lang.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(java.lang.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.


Copyright © 2000-2005 - The Apache Software Foundation