/** Return the MBeanInfo from the invocation MBeanInvoker * * @param invocation * @return the value * @throws Throwable for any error */ public Object invoke(Invocation invocation) throws Throwable { MBeanInvoker invoker = invocation.getInvoker(); return invoker.getMetaData(); } }
/** Return the MBeanInfo from the invocation MBeanInvoker * * @param invocation * @return * @throws InvocationException */ public Object invoke(Invocation invocation) throws Throwable { MBeanInvoker invoker = invocation.getInvoker(); return invoker.getMetaData(); } }
MBeanInvoker invoker = invocation.getInvoker(); callback = (PersistentMBean) invocation.getInvoker(); ModelMBeanInfo info = (ModelMBeanInfo) invoker.getMetaData(); Descriptor mbeanDesc = info.getMBeanDescriptor();
MBeanInvoker invoker = invocation.getInvoker(); callback = (PersistentMBean) invocation.getInvoker(); ModelMBeanInfo info = (ModelMBeanInfo) invoker.getMetaData(); Descriptor mbeanDesc = info.getMBeanDescriptor();
public Object invoke(Invocation invocation) throws Throwable { if( callback == null ) { lazyInit(invocation); } Object returnValue = invocation.nextInterceptor().invoke(invocation); String type = invocation.getType(); if (type != Invocation.OP_SETATTRIBUTE ) return returnValue; String attrName = invocation.getName(); String policy = (String)attrPersistencePolicies.get(attrName); if (policy == null) policy = mbeanPersistencePolicy; if (policy.equalsIgnoreCase(PP_ON_UPDATE) == true) { MBeanInvoker invoker = invocation.getInvoker(); Descriptor attrDesc = invocation.getDescriptor(); invoker.updateAttributeInfo(attrDesc); callback.store(); } else if(policy.equalsIgnoreCase(PP_NO_MORE_OFTEN_THAN) == true) { PersistenceTimerTask task = (PersistenceTimerTask) timerTaskMap.get(attrName); if( task != null ) task.setHasUpdated(true); } return returnValue; }
public Object invoke(Invocation invocation) throws Throwable { if( callback == null ) { lazyInit(invocation); } Object returnValue = invocation.nextInterceptor().invoke(invocation); String type = invocation.getType(); if (type != Invocation.OP_SETATTRIBUTE ) return returnValue; String attrName = invocation.getName(); String policy = attrPersistencePolicies.get(attrName); if (policy == null) policy = mbeanPersistencePolicy; if (policy.equalsIgnoreCase(PP_ON_UPDATE) == true) { MBeanInvoker invoker = invocation.getInvoker(); Descriptor attrDesc = invocation.getDescriptor(); invoker.updateAttributeInfo(attrDesc); callback.store(); } else if(policy.equalsIgnoreCase(PP_NO_MORE_OFTEN_THAN) == true) { PersistenceTimerTask task = timerTaskMap.get(attrName); if( task != null ) task.setHasUpdated(true); } return returnValue; }
+ " on resource: " + invocation.getInvoker().getResource() + " objectName: " + invocation.getInvoker().getObjectName(); throw new ReflectionException(new NullPointerException(msg));
+ " on resource: " + invocation.getInvoker().getResource() + " objectName: " + invocation.getInvoker().getObjectName(); throw new ReflectionException(new NullPointerException(msg));
objectName = invocation.getInvoker().getObjectName();
objectName = invocation.getInvoker().getObjectName();
objectName = invocation.getInvoker().getObjectName(); ModelMBeanInvoker invoker = (ModelMBeanInvoker) invocation.getInvoker(); invoker.sendAttributeChangeNotification( new Attribute(invocation.getName(), oldValue),
objectName = invocation.getInvoker().getObjectName(); ModelMBeanInvoker invoker = (ModelMBeanInvoker) invocation.getInvoker(); invoker.sendAttributeChangeNotification( new Attribute(invocation.getName(), oldValue),
if (getMethodString != null && (getMethod == null || getMethodString.equals(getMethod.getName()) == false)) MBeanInvoker invoker = invocation.getInvoker(); Object object = invoker.invoke(getMethodString, new Object[0], new String[0]); checkAssignable(getMethodString, invocation.getAttributeTypeClass(), object); if (setMethodString != null && (setMethod == null || setMethodString.equals(setMethod.getName()) == false)) MBeanInvoker invoker = invocation.getInvoker(); return invoker.invoke(setMethodString, new Object[] { args[0] }, new String[] { invocation.getAttributeType() });
if (getMethodString != null && (getMethod == null || getMethodString.equals(getMethod.getName()) == false)) MBeanInvoker invoker = invocation.getInvoker(); Object object = invoker.invoke(getMethodString, new Object[0], new String[0]); checkAssignable(getMethodString, invocation.getAttributeTypeClass(), object); if (setMethodString != null && (setMethod == null || setMethodString.equals(setMethod.getName()) == false)) MBeanInvoker invoker = invocation.getInvoker(); return invoker.invoke(setMethodString, new Object[] { args[0] }, new String[] { invocation.getAttributeType() });