org.apache.struts.config
public class: PlugInConfig [javadoc |
source]
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.
- version:
$
- Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
- since:
Struts
- 1.1
Field Summary |
---|
protected boolean | configured | Has this component been completely configured? |
protected Map | properties | A Map of the name-value pairs that will be used to
configure the property values of a PlugIn instance. |
protected String | className | The fully qualified Java class name of the PlugIn
implementation class being configured. |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.struts.config.PlugInConfig Detail: |
public void addProperty(String name,
String value) {
if (configured) {
throw new IllegalStateException("Configuration is frozen");
}
properties.put(name, value);
}
Add a new property name and value to the set that will be used to
configure the PlugIn instance. |
public void freeze() {
configured = true;
}
Freeze the configuration of this component. |
public String getClassName() {
return (this.className);
}
|
public Map getProperties() {
return (properties);
}
Return the properties that will be used to configure a
PlugIn instance. |
public void setClassName(String className) {
this.className = className;
}
|