first commit
This commit is contained in:
35
hrmsEjb/org/apache/struts/config/PlugInConfig.java
Normal file
35
hrmsEjb/org/apache/struts/config/PlugInConfig.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package org.apache.struts.config;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class PlugInConfig implements Serializable {
|
||||
protected boolean configured = false;
|
||||
|
||||
protected Map properties = new HashMap();
|
||||
|
||||
protected String className = null;
|
||||
|
||||
public String getClassName() {
|
||||
return this.className;
|
||||
}
|
||||
|
||||
public void setClassName(String className) {
|
||||
this.className = className;
|
||||
}
|
||||
|
||||
public void addProperty(String name, String value) {
|
||||
if (this.configured)
|
||||
throw new IllegalStateException("Configuration is frozen");
|
||||
this.properties.put(name, value);
|
||||
}
|
||||
|
||||
public void freeze() {
|
||||
this.configured = true;
|
||||
}
|
||||
|
||||
public Map getProperties() {
|
||||
return this.properties;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user