protected void initOperationContexts(MBeanOperationInfo[] operations) { // make sure we invoke the super class initialization sequence first super.initOperationContexts(operations); for (int i = 0; i < operations.length; ++i) { OperationKey key = new OperationKey(operations[i]); InvocationContext ctx = (InvocationContext) operationContextMap.get(key); ModelMBeanOperationInfo info = (ModelMBeanOperationInfo) operations[i]; ctx.setDescriptor(info.getDescriptor()); } }
protected void initOperationContexts(MBeanOperationInfo[] operations) { // make sure we invoke the super class initialization sequence first super.initOperationContexts(operations); for (int i = 0; i < operations.length; ++i) { OperationKey key = new OperationKey(operations[i]); InvocationContext ctx = (InvocationContext) operationContextMap.get(key); ModelMBeanOperationInfo info = (ModelMBeanOperationInfo) operations[i]; ctx.setDescriptor(info.getDescriptor()); } }
protected void initAttributeContexts(MBeanAttributeInfo[] attributes) { super.initAttributeContexts(attributes); for (int i = 0; i < attributes.length; ++i) { ModelMBeanAttributeInfo info = (ModelMBeanAttributeInfo) attributes[i]; String name = info.getName(); InvocationContext ctx = (InvocationContext) attributeContextMap.get(name); ctx.setDescriptor(info.getDescriptor()); ctx.setReadable(info.isReadable()); ctx.setWritable(info.isWritable()); } }
protected void initAttributeContexts(MBeanAttributeInfo[] attributes) { super.initAttributeContexts(attributes); for (int i = 0; i < attributes.length; ++i) { ModelMBeanAttributeInfo info = (ModelMBeanAttributeInfo) attributes[i]; String name = info.getName(); InvocationContext ctx = (InvocationContext) attributeContextMap.get(name); ctx.setDescriptor(info.getDescriptor()); ctx.setReadable(info.isReadable()); ctx.setWritable(info.isWritable()); } }
if (descriptor != null) ctx.setDescriptor(descriptor); if (dynamicResource && ModelMBeanConstants.OPERATION_DESCRIPTOR.equals(descriptor.getFieldValue(ModelMBeanConstants.DESCRIPTOR_TYPE)))
if (descriptor != null) ctx.setDescriptor(descriptor); if (dynamicResource && ModelMBeanConstants.OPERATION_DESCRIPTOR.equals(descriptor.getFieldValue(ModelMBeanConstants.DESCRIPTOR_TYPE)))
ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);
ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);
getMBeanInfoCtx = new InvocationContext(); getMBeanInfoCtx.setInvoker(this); getMBeanInfoCtx.setDescriptor(mbeanDescriptor); getMBeanInfoCtx.setDispatcher(new AbstractInterceptor("MBeanInfo Dispatcher")
getMBeanInfoCtx = new InvocationContext(); getMBeanInfoCtx.setInvoker(this); getMBeanInfoCtx.setDescriptor(mbeanDescriptor); getMBeanInfoCtx.setDispatcher(new AbstractInterceptor("MBeanInfo Dispatcher")
ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);
ctx.setDescriptor(attrDesc); updateAttributeInfo(attrDesc);