Package org.jboss.mx.interceptor

Examples of org.jboss.mx.interceptor.AbstractInterceptor


   }
     
     
   public Object invoke() throws InvocationException
   {
      AbstractInterceptor ic = nextInterceptor();
     
      if (ic == null)
         return dispatch();
      else
         return ic.invoke(this);
        
   }
View Full Code Here


   }
     
     
   public Object invoke() throws Throwable
   {
      AbstractInterceptor ic = nextInterceptor();
     
      if (ic == null)
         return dispatch();
      else
         return ic.invoke(this);
        
   }
View Full Code Here

      final ModelMBeanInfo minfo = (ModelMBeanInfo) info;
      Descriptor mbeanDescriptor = minfo.getMBeanDescriptor();
      getMBeanInfoCtx = new InvocationContext();
      getMBeanInfoCtx.setInvoker(this);
      getMBeanInfoCtx.setDescriptor(mbeanDescriptor);
      getMBeanInfoCtx.setDispatcher(new AbstractInterceptor("MBeanInfo Dispatcher")
      {
         public Object invoke(Invocation invocation) throws Throwable
         {
            return minfo;
         }
      });
      // JBAS-33 - No need to register the "getMBeanInfo" context to the operationsContextMap,
      // this is only accessible through AbstractMBeanInvoker.getMBeanInfo().
      // Registering it will result in duplicate interceptor construction.

      // Need to install the setManagedResource op
      // TODO, this is probably uneccessary now so revisit this
      String[] signature = new String[]{"java.lang.Object", "java.lang.String"};
      OperationKey opKey = new OperationKey("setManagedResource", signature);
      InvocationContext ctx = new InvocationContext();
      ctx.setInvoker(this);
      ctx.setDispatcher(new AbstractInterceptor("SetMangedResource Dispatcher")
      {
         public Object invoke(Invocation invocation) throws Throwable
         {
            Object[] args = invocation.getArgs();
            setManagedResource(args[0], (String) args[1]);
View Full Code Here

/* 447 */     ModelMBeanInfo minfo = (ModelMBeanInfo)this.info;
/* 448 */     Descriptor mbeanDescriptor = minfo.getMBeanDescriptor();
/* 449 */     this.getMBeanInfoCtx = new InvocationContext();
/* 450 */     this.getMBeanInfoCtx.setInvoker(this);
/* 451 */     this.getMBeanInfoCtx.setDescriptor(mbeanDescriptor);
/* 452 */     this.getMBeanInfoCtx.setDispatcher(new AbstractInterceptor("MBeanInfo Dispatcher", minfo)
/*     */     {
/*     */       public Object invoke(Invocation invocation) throws Throwable
/*     */       {
/* 456 */         return this.val$minfo;
/*     */       }
/*     */     });
/* 465 */     String[] signature = { "java.lang.Object", "java.lang.String" };
/* 466 */     AbstractMBeanInvoker.OperationKey opKey = new AbstractMBeanInvoker.OperationKey(this, "setManagedResource", signature);
/* 467 */     InvocationContext ctx = new InvocationContext();
/* 468 */     ctx.setInvoker(this);
/* 469 */     ctx.setDispatcher(new AbstractInterceptor("SetMangedResource Dispatcher")
/*     */     {
/*     */       public Object invoke(Invocation invocation) throws Throwable
/*     */       {
/* 473 */         Object[] args = invocation.getArgs();
/* 474 */         ModelMBeanInvoker.this.setManagedResource(args[0], (String)args[1]);
View Full Code Here

/*     */   }
/*     */
/*     */   public Object invoke()
/*     */     throws Throwable
/*     */   {
/*  85 */     AbstractInterceptor ic = nextInterceptor();
/*     */
/*  87 */     if (ic == null) {
/*  88 */       return dispatch();
/*     */     }
/*  90 */     return ic.invoke(this);
/*     */   }
View Full Code Here

TOP

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

Copyright © 2018 www.massapicom. 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.