1 22 package org.jboss.mx.interceptor; 23 24 import javax.management.MBeanInfo ; 25 26 import org.jboss.mx.metadata.MBeanInfoConversion; 27 import org.jboss.mx.server.Invocation; 28 29 34 public class StandardMBeanInfoInterceptor extends AbstractInterceptor 35 { 36 MBeanInfo standardInfo = null; 38 39 public StandardMBeanInfoInterceptor() 40 { 41 super("Standard MBeanInfo Interceptor for XXX"); 43 } 44 45 public Object invoke(Invocation invocation) throws Throwable 46 { 47 48 MBeanInfo info = null; 49 50 try 51 { 52 info = (MBeanInfo )super.invoke(invocation); 53 } 54 finally 55 { 56 if (standardInfo == null) 57 { 58 standardInfo = MBeanInfoConversion.stripAttributeOperations(MBeanInfoConversion.toModelMBeanInfo(info), false); 59 } 60 } 61 return standardInfo; 62 } 63 } 64 65 | Popular Tags |