org.apache.struts.config

Class PlugInConfig

Implemented Interfaces:
Serializable

public class PlugInConfig
extends java.lang.Object
implements 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 String
className
The fully qualified Java class name of the PlugIn implementation class being configured.
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.

Method Summary

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.
void
freeze()
Freeze the configuration of this component.
String
getClassName()
Map
getProperties()
Return the properties that will be used to configure a PlugIn instance.
void
setClassName(String className)

Field Details

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 Details

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 B) 2000-2007 - The Apache Software Foundation