Package org.apache.struts.config
Class ModuleConfigFactory
java.lang.Object
org.apache.struts.config.ModuleConfigFactory
- Direct Known Subclasses:
DefaultModuleConfigFactory
A factory interface for creating
ModuleConfig
s.- Version:
- $Rev$ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static Class
<? extends ModuleConfigFactory> The Java class to be used forModuleConfigFactory
instances.protected static String
The fully qualified class name to be used forModuleConfigFactory
instances. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleConfigFactory
Create and return aModuleConfigFactory
instance of the appropriate class, which can be used to create customizedModuleConfig
instances.abstract ModuleConfig
createModuleConfig
(String prefix) Create and return a newly instansiatedModuleConfig
.static String
The fully qualified class name that is used forModuleConfigFactory
instances.static void
setFactoryClass
(String factoryClass) Set the fully qualified class name that is used forModuleConfigFactory
instances.
-
Field Details
-
clazz
The Java class to be used forModuleConfigFactory
instances. -
factoryClass
The fully qualified class name to be used forModuleConfigFactory
instances.
-
-
Constructor Details
-
ModuleConfigFactory
public ModuleConfigFactory()
-
-
Method Details
-
createModuleConfig
Create and return a newly instansiatedModuleConfig
. This method must be implemented by concrete subclasses.- Parameters:
prefix
- Module prefix for Configuration
-
getFactoryClass
The fully qualified class name that is used forModuleConfigFactory
instances.- Returns:
- class name that is used for
ModuleConfigFactory
instances
-
setFactoryClass
Set the fully qualified class name that is used forModuleConfigFactory
instances.- Parameters:
factoryClass
- name that is used forModuleConfigFactory
instances
-
createFactory
Create and return aModuleConfigFactory
instance of the appropriate class, which can be used to create customizedModuleConfig
instances. If no such factory can be created, returnnull
instead.
-