org.apache.struts.config

Class PlugInConfig

public class PlugInConfig extends Object implements Serializable

A JavaBean representing the configuration information of a <plug-in> element in a Struts configuration file.

Since: Struts 1.1

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected StringclassName
The fully qualified Java class name of the PlugIn implementation class being configured.
protected booleanconfigured
Has this component been completely configured?
protected Mapproperties
A Map of the name-value pairs that will be used to configure the property values of a PlugIn instance.
Method Summary
voidaddProperty(String name, String value)
Add a new property name and value to the set that will be used to configure the PlugIn instance.
voidfreeze()
Freeze the configuration of this component.
StringgetClassName()
MapgetProperties()
Return the properties that will be used to configure a PlugIn instance.
voidsetClassName(String className)

Field Detail

className

protected String className
The fully qualified Java class name of the PlugIn implementation class being configured.

configured

protected boolean configured
Has this component been completely configured?

properties

protected Map properties
A Map of the name-value pairs that will be used to configure the property values of a PlugIn instance.

Method Detail

addProperty

public void addProperty(String name, String value)
Add a new property name and value to the set that will be used to configure the PlugIn instance.

Parameters: name Property name value Property value

freeze

public void freeze()
Freeze the configuration of this component.

getClassName

public String getClassName()

getProperties

public Map getProperties()
Return the properties that will be used to configure a PlugIn instance.

setClassName

public void setClassName(String className)
Copyright © 2000-2008 - The Apache Software Foundation