Package org.jboss.mx.interceptor

Source Code of org.jboss.mx.interceptor.ModelMBeanInfoInterceptor

/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/

package org.jboss.mx.interceptor;

import java.util.List;

import javax.management.MBeanException;
import javax.management.MBeanInfo;
import javax.management.modelmbean.ModelMBeanInfo;

import org.jboss.mx.metadata.MBeanInfoConversion;

import org.jboss.mx.server.Invocation;
import org.jboss.mx.server.InvocationException;
import org.jboss.mx.server.MBeanInvoker;

/**
*
* @author  <a href="mailto:juha@jboss.org">Juha Lindfors</a>.
* @version $Revision: 1.2 $
*/  
public class ModelMBeanInfoInterceptor extends AbstractInterceptor
{
   public ModelMBeanInfoInterceptor()
   {
      // FIXME: xxx
      super("Model MBeanInfo Interceptor for XXX");
   }
  
   public Object invoke(Invocation invocation) throws InvocationException
   {
      try {}
      finally
      {
         MBeanInvoker invoker = invocation.getInvoker();
         return invoker.getMetaData();
      }
   }
}

TOP

Related Classes of org.jboss.mx.interceptor.ModelMBeanInfoInterceptor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.