User: squirest
Date: 02/01/28 19:33:22
Modified: src/main/org/jboss/mx/modelmbean ModelBase.java
Log:
first integration of new metadata and interceptor chain for core DynamicMBean
capabilities
Revision Changes Path
1.5 +18 -18 jmx/src/main/org/jboss/mx/modelmbean/ModelBase.java
Index: ModelBase.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/modelmbean/ModelBase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ModelBase.java 2002/01/26 21:09:41 1.4
+++ ModelBase.java 2002/01/29 03:33:22 1.5
@@ -35,7 +35,7 @@
import javax.management.modelmbean.DescriptorSupport;
import javax.management.modelmbean.InvalidTargetObjectTypeException;
-import org.jboss.mx.server.MBeanInvoker;
+import org.jboss.mx.server.OLDMBeanInvoker;
import org.jboss.mx.interceptor.ModelMBeanInterceptor;
import org.jboss.mx.interceptor.PersistenceInterceptor;
import org.jboss.mx.persistence.NullPersistence;
@@ -49,22 +49,22 @@
* @see org.jboss.mx.modelmbean.ModelMBeanConstants
*
* @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>.
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
-public abstract class ModelBase
- extends MBeanInvoker
+public abstract class ModelBase
+ extends OLDMBeanInvoker
implements ModelMBean, ModelMBeanConstants, MBeanRegistration
{
// Attributes ----------------------------------------------------
protected String resourceType = null;
protected PersistenceManager persistence = new NullPersistence();
- protected NotificationBroadcasterSupport notifier = new
NotificationBroadcasterSupport();
-
+ protected NotificationBroadcasterSupport notifier = new
NotificationBroadcasterSupport();
+
protected long notifierSequence = 1;
protected long attrNotifierSequence = 1;
-
-
+
+
// Constructors --------------------------------------------------
public ModelBase()
{}
@@ -84,11 +84,11 @@
}
// Public --------------------------------------------------------
-
+
// verify the resource types supported by the concrete MMBean implementation
public abstract boolean isSupportedResourceType(String resourceType);
+
-
// ModelMBean implementation -------------------------------------
public void setModelMBeanInfo(ModelMBeanInfo info)
throws MBeanException, RuntimeOperationsException
@@ -99,7 +99,7 @@
this.info = new ModelMBeanInfoSupport(info);
}
- public void setManagedResource(Object ref, String resourceType)
+ public void setManagedResource(Object ref, String resourceType)
throws MBeanException, InstanceNotFoundException,
InvalidTargetObjectTypeException
{
if (ref == null)
@@ -159,13 +159,13 @@
notifier.sendNotification(notification);
}
- public void sendAttributeChangeNotification(AttributeChangeNotification
notification)
+ public void sendAttributeChangeNotification(AttributeChangeNotification
notification)
throws MBeanException
{
notifier.sendNotification(notification);
}
- public void sendAttributeChangeNotification(Attribute oldValue, Attribute
newValue)
+ public void sendAttributeChangeNotification(Attribute oldValue, Attribute
newValue)
throws MBeanException
{
String attr = oldValue.getName();
@@ -205,20 +205,20 @@
// MBeanRegistration implementation ------------------------------
public ObjectName preRegister(MBeanServer server, ObjectName name) throws
Exception
- {
+ {
//this.descriptors = metadata.getDescriptors(ALL_DESCRIPTORS);
ModelMBeanInfoSupport infoSupport = (ModelMBeanInfoSupport) info;
- this.stack = new PersistenceInterceptor(server, this,
+ this.stack = new PersistenceInterceptor(server, this,
infoSupport.getDescriptors(ALL_DESCRIPTORS));
this.stack.insertLast(new ModelMBeanInterceptor(resource, infoSupport));
-
+
return name;
}
-
+
public void postRegister(Boolean registrationSuccessful) { }
public void preDeregister() throws Exception { }
public void postDeregister() { }
-
+
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development