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
Modifier and TypeFieldDescriptionprotected String
The fully qualified Java class name of thePlugIn
implementation class being configured.protected boolean
Has this component been completely configured?AMap
of the name-value pairs that will be used to configure the property values of aPlugIn
instance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String name, String value) Add a new property name and value to the set that will be used to configure thePlugIn
instance.void
freeze()
Freeze the configuration of this component.Return the properties that will be used to configure aPlugIn
instance.void
setClassName
(String className)
-
Field Details
-
configured
protected boolean configuredHas this component been completely configured? -
properties
AMap
of the name-value pairs that will be used to configure the property values of aPlugIn
instance. -
className
The fully qualified Java class name of thePlugIn
implementation 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 thePlugIn
instance.- 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 aPlugIn
instance.
-