Package org.jboss.mx.server

Examples of org.jboss.mx.server.InvocationContext$NullDispatcher


/*     */
/* 585 */     for (int i = 0; i < operations.length; i++)
/*     */     {
/* 587 */       AbstractMBeanInvoker.OperationKey key = new AbstractMBeanInvoker.OperationKey(this, operations[i]);
/*     */
/* 589 */       InvocationContext ctx = (InvocationContext)this.operationContextMap.get(key);
/* 590 */       ModelMBeanOperationInfo info = (ModelMBeanOperationInfo)operations[i];
/* 591 */       ctx.setDescriptor(info.getDescriptor());
/*     */     }
/*     */   }
View Full Code Here


/*     */
/* 599 */     for (int i = 0; i < attributes.length; i++)
/*     */     {
/* 601 */       ModelMBeanAttributeInfo info = (ModelMBeanAttributeInfo)attributes[i];
/* 602 */       String name = info.getName();
/* 603 */       InvocationContext ctx = (InvocationContext)this.attributeContextMap.get(name);
/* 604 */       ctx.setDescriptor(info.getDescriptor());
/* 605 */       ctx.setReadable(info.isReadable());
/* 606 */       ctx.setWritable(info.isWritable());
/*     */     }
/*     */   }
View Full Code Here

/*     */
/* 648 */     for (Iterator it = this.attributeContextMap.entrySet().iterator(); it.hasNext(); )
/*     */     {
/* 650 */       Map.Entry entry = (Map.Entry)it.next();
/*     */
/* 652 */       InvocationContext ctx = (InvocationContext)entry.getValue();
/* 653 */       List list = getInterceptors(ctx.getDescriptor());
/* 654 */       if (list == null)
/*     */       {
/* 657 */         if (defaultInterceptors != null)
/*     */         {
/* 659 */           list = new ArrayList(defaultInterceptors);
/*     */         }
/*     */         else
/*     */         {
/* 663 */           list = new ArrayList();
/*     */         }
/*     */       }
/*     */
/* 667 */       list.add(new PersistenceInterceptor());
/* 668 */       list.add(new ModelMBeanAttributeInterceptor());
/* 669 */       ctx.setInterceptors(list);
/*     */     }
/*     */
/* 673 */     for (Iterator it = this.operationContextMap.entrySet().iterator(); it.hasNext(); )
/*     */     {
/* 675 */       Map.Entry entry = (Map.Entry)it.next();
/*     */
/* 677 */       InvocationContext ctx = (InvocationContext)entry.getValue();
/* 678 */       List list = getInterceptors(ctx.getDescriptor());
/* 679 */       if ((list == null) && (defaultInterceptors != null)) {
/* 680 */         list = new ArrayList(defaultInterceptors);
/*     */       }
/*     */
/* 683 */       if (this.dynamicResource)
/*     */       {
/* 685 */         if (list == null)
/*     */         {
/* 687 */           list = new ArrayList();
/*     */         }
/* 689 */         list.add(new ModelMBeanOperationInterceptor());
/*     */       }
/*     */
/* 692 */       if (list != null)
/*     */       {
/* 698 */         list.add(new NullInterceptor());
/* 699 */         ctx.setInterceptors(list);
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

/* 797 */     for (Iterator it = this.attributeContextMap.entrySet().iterator(); it.hasNext(); )
/*     */     {
/* 799 */       Map.Entry entry = (Map.Entry)it.next();
/* 800 */       String key = (String)entry.getKey();
/*     */
/* 802 */       InvocationContext ctx = (InvocationContext)entry.getValue();
/*     */
/* 804 */       Object value = ctx.getDescriptor().getFieldValue("value");
/* 805 */       if (value != null)
/*     */       {
/* 807 */         setAttribute(new Attribute(key, value));
/*     */       }
/*     */     }
View Full Code Here

TOP

Related Classes of org.jboss.mx.server.InvocationContext$NullDispatcher

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.