[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jmx2/src/main/org/jboss/mx/interceptor ModelMBeanAttributeInterceptor.java PersistenceIn
From: Adrian Brock <ejort () users ! sourceforge ! net>
Date: 2005-03-31 23:31:55
Message-ID: E1DH98l-0000T6-PY () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
User: ejort
Date: 05/03/31 15:31:55
Modified: src/main/org/jboss/mx/interceptor
ModelMBeanAttributeInterceptor.java
PersistenceInterceptor.java DynamicInterceptor.java
Log:
More source code tidyup
Revision Changes Path
1.3 +4 -3 jmx2/src/main/org/jboss/mx/interceptor/ModelMBeanAttributeInterceptor.java
Index: ModelMBeanAttributeInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jmx2/src/main/org/jboss/mx/interceptor/ModelMBeanAttributeInterceptor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ModelMBeanAttributeInterceptor.java 30 Mar 2005 22:18:25 -0000 1.2
+++ ModelMBeanAttributeInterceptor.java 31 Mar 2005 23:31:40 -0000 1.3
@@ -15,6 +15,7 @@
import org.jboss.mx.modelmbean.ModelMBeanConstants;
import org.jboss.mx.modelmbean.ModelMBeanInvoker;
import org.jboss.mx.server.Invocation;
+import org.jboss.mx.server.InvocationContext;
import org.jboss.util.UnreachableStatementException;
@@ -24,7 +25,7 @@
* @author <a href="mailto:juha@jboss.org">Juha Lindfors</a>.
* @author Scott.Stark@jboss.org
* @author <a href="mailto:dimitris@jboss.org">Dimitris Andreadis</a>.
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class ModelMBeanAttributeInterceptor
extends AbstractInterceptor
@@ -63,7 +64,7 @@
}
// check the invocation access point: setAttribute()
- if (invocation.getType().equals(Invocation.OP_SETATTRIBUTE))
+ if (invocation.getType().equals(InvocationContext.OP_SETATTRIBUTE))
{
// setAttribute always contains one arg
Object value = invocation.getArgs() [0];
@@ -117,7 +118,7 @@
);
return null;
}
- else if (invocation.getType().equals(Invocation.OP_GETATTRIBUTE))
+ else if (invocation.getType().equals(InvocationContext.OP_GETATTRIBUTE))
{
if (trace)
log.trace("Getting objectName=" + objectName + " attr=" + name);
1.2 +3 -2 jmx2/src/main/org/jboss/mx/interceptor/PersistenceInterceptor.java
Index: PersistenceInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jmx2/src/main/org/jboss/mx/interceptor/PersistenceInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PersistenceInterceptor.java 6 Jan 2005 00:03:26 -0000 1.1
+++ PersistenceInterceptor.java 31 Mar 2005 23:31:55 -0000 1.2
@@ -19,6 +19,7 @@
import org.jboss.mx.modelmbean.ModelMBeanConstants;
import org.jboss.mx.service.ServiceConstants;
import org.jboss.mx.server.Invocation;
+import org.jboss.mx.server.InvocationContext;
import org.jboss.mx.server.MBeanInvoker;
/** A peristence interceptor that uses the java.util.Timer framework for the
@@ -30,7 +31,7 @@
* @author Scott.Stark@jboss.org
* @author <a href="mailto:dimitris@jboss.org">Dimitris Andreadis</a>.
*
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class PersistenceInterceptor
extends AbstractInterceptor
@@ -60,7 +61,7 @@
Object returnValue = invocation.nextInterceptor().invoke(invocation);
String type = invocation.getType();
- if (type != Invocation.OP_SETATTRIBUTE )
+ if (type != InvocationContext.OP_SETATTRIBUTE )
return returnValue;
String attrName = invocation.getName();
1.2 +3 -2 jmx2/src/main/org/jboss/mx/interceptor/DynamicInterceptor.java
Index: DynamicInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jmx2/src/main/org/jboss/mx/interceptor/DynamicInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DynamicInterceptor.java 6 Jan 2005 00:03:26 -0000 1.1
+++ DynamicInterceptor.java 31 Mar 2005 23:31:55 -0000 1.2
@@ -8,6 +8,7 @@
package org.jboss.mx.interceptor;
import org.jboss.mx.server.Invocation;
+import org.jboss.mx.server.InvocationContext;
import org.jboss.mx.server.MBeanInvoker;
/**
@@ -15,7 +16,7 @@
* for dynamically adding and removing interceptors to an MBean.
*
* @author <a href="mailto:dimitris@jboss.org">Dimitris Andreadis</a>.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class DynamicInterceptor
extends AbstractInterceptor
@@ -46,7 +47,7 @@
String type = invocation.getType();
// implement Interceptable by delegating to MBeanInvoker
- if (type.equals(Invocation.OP_INVOKE))
+ if (type.equals(InvocationContext.OP_INVOKE))
{
String name = invocation.getName();
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic