public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(getName()); String[] sig = getSignature(); if (sig != null) buffer.append(Arrays.asList(sig)); buffer.append(' ').append(getType()); return buffer.toString(); }
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(getName()); String[] sig = getSignature(); if (sig != null) buffer.append(Arrays.asList(sig)); buffer.append(' ').append(getType()); return buffer.toString(); }
public Object invoke(Invocation invocation) throws Throwable { // Invoke the next in the sequence Object result = invocation.nextInterceptor().invoke(invocation); // If the invocation was an 'invoke(MarshalledInvocation)' // filter the result using the plugable policy if ("invoke".equals(invocation.getName())) { Object[] args = invocation.getArgs(); if ((args.length == 1) && (args[0] instanceof MarshalledInvocation)) { MarshalledInvocation mi = (MarshalledInvocation) args[0]; result = policy.filter(mi, result); } } return result; }
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; }
if (type == Invocation.OP_INVOKE) String opName = invocation.getName(); if (opName.equals("invoke"))
String operationName = invocation.getName(); if (dynamic)
String operationName = invocation.getName(); if (dynamic)
String name = invocation.getName();
String name = invocation.getName();
if (type == Invocation.OP_INVOKE && securityMgr != null) String opName = invocation.getName(); if (opName.equals("invoke"))