/** * */ public MethodMatcher getMethodMatcher() { if (methodMatcher == null) methodMatcher = new MethodMatcher(); return methodMatcher; }
Class[] suppliedParamTypes = paramTypes(parameters); convertParams(parameters, desiredParamTypes, currentMatch, false); methodNotFound(methodName, suppliedParamTypes, bestMatch); convertParams(parameters, desiredParamTypes, bestMatch, true); return method;
/** * Checks if the method is allowed to be invoked, i.e., if it has been * explicitly excluded, or if inclusions have been specified and it is not * on the inclusion list. * * @throw MessageException if method is not allowed. */ protected void validateAgainstMethodFilters(String methodName) { if (includeMethods != null) { RemotingMethod method = (RemotingMethod)includeMethods.get(methodName); if (method == null) MethodMatcher.methodNotFound(methodName, null, new Match(null)); // Check method-level security constraint, if defined. SecurityConstraint constraint = method.getSecurityConstraint(); if (constraint != null) getDestination().getService().getMessageBroker().getLoginManager().checkConstraint(constraint); } else if ((excludeMethods != null) && excludeMethods.containsKey(methodName)) MethodMatcher.methodNotFound(methodName, null, new Match(null)); }
Method method = methodMatcher.getMethod(c, methodName, parameters); result = method.invoke(instance, parameters.toArray());
if (objClass != null && isAssignableFrom(desiredParamTypes[i], objClass)) if (isAssignableFrom(desiredParamTypes[i], param.getClass())) exactMatchCount++;
Class[] suppliedParamTypes = paramTypes(parameters); convertParams(parameters, desiredParamTypes, bestMatch); convertParams(parameters, desiredParamTypes, currentMatch); methodNotFound(methodName, suppliedParamTypes, bestMatch);
/** * Checks if the method is allowed to be invoked, i.e., if it has been * explicitly excluded, or if inclusions have been specified and it is not * on the inclusion list. * * @throw MessageException if method is not allowed. */ protected void validateAgainstMethodFilters(String methodName) { if (includeMethods != null) { RemotingMethod method = (RemotingMethod)includeMethods.get(methodName); if (method == null) MethodMatcher.methodNotFound(methodName, null, new Match(null)); // Check method-level security constraint, if defined. SecurityConstraint constraint = method.getSecurityConstraint(); if (constraint != null) getDestination().getService().getMessageBroker().getLoginManager().checkConstraint(constraint); } else if ((excludeMethods != null) && excludeMethods.containsKey(methodName)) MethodMatcher.methodNotFound(methodName, null, new Match(null)); }
Method method = methodMatcher.getMethod(c, methodName, parameters); result = method.invoke(instance, parameters.toArray());
if (objClass != null && isAssignableFrom(desiredParamTypes[i], objClass)) if (isAssignableFrom(desiredParamTypes[i], param.getClass())) exactMatchCount++;
Class[] suppliedParamTypes = paramTypes(parameters); convertParams(parameters, desiredParamTypes, currentMatch, false); methodNotFound(methodName, suppliedParamTypes, bestMatch); convertParams(parameters, desiredParamTypes, bestMatch, true); return method;
/** * */ public MethodMatcher getMethodMatcher() { if (methodMatcher == null) methodMatcher = new MethodMatcher(); return methodMatcher; }