costin 2002/11/05 11:10:20
Modified: modeler/src/java/org/apache/commons/modeler
BaseModelMBean.java
Log:
Remove the local attribute store - this is the wrong solution ( since
it works only for modeler mbeans )
Revision Changes Path
1.6 +4 -25
jakarta-commons/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java
Index: BaseModelMBean.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BaseModelMBean.java 1 Nov 2002 23:10:10 -0000 1.5
+++ BaseModelMBean.java 5 Nov 2002 19:10:19 -0000 1.6
@@ -210,9 +210,6 @@
// key: operation val: invoke method
Hashtable invokeAttMap=new Hashtable();
- // All attributes that are set via this interface ( original values )
- Hashtable attributes=new Hashtable();
-
/**
* Obtain and return the value of a specific attribute of this MBean.
*
@@ -590,8 +587,6 @@
throw new MBeanException
(e, "Exception invoking method " + name);
}
-
- attributes.put( name, value );
}
@@ -1116,22 +1111,6 @@
(new IllegalStateException("Persistence is not supported"),
"Persistence is not supported");
- }
-
- // ------------------- Special methods ----------------------------------
-
- /** Get all attributes that were set via JMX. This data can be persisted.
- *
- */
- public Hashtable getAttributes() {
- return attributes;
- }
-
- /** "Backdoor" method to push configuration data that
- * was set using other methods ( like digester and direct introspection )
- */
- public void putAttribute( String name, Object value ) {
- attributes.put(name, value );
}
// ------------------------------------------------------ Protected Methods
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>