|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.tiles.DefinitionsFactoryConfig
public class DefinitionsFactoryConfig
A TilesFactoryConfig object hold configuration attributes for a tile definition factory.
Field Summary | |
---|---|
protected String |
definitionConfigFiles
Definition configuration file specified by user. |
static String |
DEFINITIONS_CONFIG_PARAMETER_NAME
Alternate name for definition files properties in configuration file. |
static String |
FACTORY_CLASSNAME_PARAMETER_NAME
Alternate name for factory classname properties in configuration file. |
protected String |
factoryClassname
Fully qualified classname of the factory to create. |
protected String |
factoryName
The name associated to this factory. |
protected boolean |
moduleAware
Specifies whether the factory is "module-aware". |
static String |
PARSER_DETAILS_PARAMETER_NAME
Deprecated. This will be removed in a release after Struts 1.2. |
static String |
PARSER_VALIDATE_PARAMETER_NAME
Alternate name for parser validate properties in configuration file. |
protected boolean |
parserValidate
Specifies whether the parser will validate configuration files. |
static String |
TILES_DETAILS_PARAMETER_NAME
Deprecated. This will be removed in a release after Struts 1.2. |
Constructor Summary | |
---|---|
DefinitionsFactoryConfig()
Default constructor. |
|
DefinitionsFactoryConfig(Map initParameters)
Constructor. |
Method Summary | |
---|---|
Object |
getAttribute(String name)
Get value of an additional attribute. |
Map |
getAttributes()
Get additional attributes as a Map. |
String |
getDefinitionConfigFiles()
Get the definition config files. |
String |
getFactoryClassname()
Get the classname of the factory. |
String |
getFactoryName()
Get the factory name. |
boolean |
getParserValidate()
Determines if the parser is validating. |
boolean |
isModuleAware()
Get the module aware flag. |
static void |
linkOldPropertyNames(Map properties)
Link old property names to new property names. |
void |
populate(Map properties)
Populate this config object from properties map, based on the specified name/value pairs. |
void |
setAttribute(String name,
Object value)
Set value of an additional attribute. |
void |
setDefinitionConfigFiles(String aDefinitionConfigFiles)
Set the definition config files. |
void |
setFactoryClassname(String aFactoryClassname)
Set the classname of the factory.. |
void |
setFactoryName(String factoryName)
Set the factory name. |
void |
setModuleAware(boolean moduleAware)
Set the module aware flag. |
void |
setParserValidate(boolean aParserValidate)
Set the validating mode for the parser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String factoryClassname
protected boolean parserValidate
protected String definitionConfigFiles
protected boolean moduleAware
protected String factoryName
public static final String PARSER_DETAILS_PARAMETER_NAME
public static final String PARSER_VALIDATE_PARAMETER_NAME
public static final String FACTORY_CLASSNAME_PARAMETER_NAME
public static final String DEFINITIONS_CONFIG_PARAMETER_NAME
public static final String TILES_DETAILS_PARAMETER_NAME
Constructor Detail |
---|
public DefinitionsFactoryConfig()
public DefinitionsFactoryConfig(Map initParameters)
initParameters
- Map.Method Detail |
---|
public boolean isModuleAware()
true
: user wants a single factory instance,
false
: user wants multiple factory instances (one per module with Struts)public void setModuleAware(boolean moduleAware)
moduleAware
- true
: user wants a single factory instance,
false
: user wants multiple factory instances (one per module with Struts)public String getFactoryClassname()
public void setFactoryClassname(String aFactoryClassname)
aFactoryClassname
- Classname of the factory.public boolean getParserValidate()
true when in validating mode.
public void setParserValidate(boolean aParserValidate)
aParserValidate
- true
for validation, false
otherwisepublic String getDefinitionConfigFiles()
public void setDefinitionConfigFiles(String aDefinitionConfigFiles)
aDefinitionConfigFiles
- Definition config files.public void setAttribute(String name, Object value)
name
- Name of the attribute.value
- Value of the attribute.public Object getAttribute(String name)
name
- Name of the attribute.
public Map getAttributes()
public void populate(Map properties) throws IllegalAccessException, InvocationTargetException
Properties keys are scanned for old property names, and linked to the new name if necessary. This modifies the properties map.
The particular setter method to be called for each property is determined using the usual JavaBeans introspection mechanisms. Thus, you may identify custom setter methods using a BeanInfo class that is associated with the class of the bean itself. If no such BeanInfo class is available, the standard method name conversion ("set" plus the capitalized name of the property in question) is used.
NOTE: It is contrary to the JavaBeans Specification to have more than one setter method (with different argument signatures) for the same property.
properties
- Map keyed by property name, with the
corresponding (String or String[]) value(s) to be set.
IllegalAccessException
- if the caller does not have
access to the property accessor method.
InvocationTargetException
- if the property accessor method
throws an exception.BeanUtils
public static void linkOldPropertyNames(Map properties)
properties
- Map keyed by property name, with the
corresponding (String or String[]) value(s) to be set.public String getFactoryName()
public void setFactoryName(String factoryName)
factoryName
- Name of the factory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |