Package org.apache.struts.config
Class PlugInConfig
java.lang.Object
org.apache.struts.config.PlugInConfig
- All Implemented Interfaces:
Serializable
A JavaBean representing the configuration information of a
<plug-in> element in a Struts configuration file.
Note that this class does not extend BaseConfig because it
is more "internal" than the other classes which do, and because this class
has an existing "properties" object which collides with the one in
BaseConfig. Also, since one always writes a concrete PlugIn
implementation, there seems to be less call for an arbitrary property map;
one can simply use bean properties instead.
- Since:
- Struts 1.1
- Version:
- $Rev$ $Date: 2005-05-12 18:41:19 -0400 (Thu, 12 May 2005) $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe fully qualified Java class name of thePlugInimplementation class being configured.protected booleanHas this component been completely configured?AMapof the name-value pairs that will be used to configure the property values of aPlugIninstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) Add a new property name and value to the set that will be used to configure thePlugIninstance.voidfreeze()Freeze the configuration of this component.Return the properties that will be used to configure aPlugIninstance.voidsetClassName(String className)
-
Field Details
-
configured
protected boolean configuredHas this component been completely configured? -
properties
AMapof the name-value pairs that will be used to configure the property values of aPlugIninstance. -
className
The fully qualified Java class name of thePlugInimplementation class being configured.
-
-
Constructor Details
-
PlugInConfig
public PlugInConfig()
-
-
Method Details
-
getClassName
-
setClassName
-
addProperty
Add a new property name and value to the set that will be used to configure thePlugIninstance.- Parameters:
name- Property namevalue- Property value
-
freeze
public void freeze()Freeze the configuration of this component. -
getProperties
Return the properties that will be used to configure aPlugIninstance.
-