MethodCache methodCache = new MethodCache(log);
throws MethodMap.AmbiguousException String methodKey = makeMethodKey(name, params);
throws MethodMap.AmbiguousException String methodKey = makeMethodKey(name, params);
throws MethodMap.AmbiguousException String methodKey = makeMethodKey(name, params);
MethodCache methodCache = new MethodCache(log);
MethodCache methodCache = new MethodCache(log, conversionHandler);
private void put(Method method) { String methodKey = makeMethodKey(method); // We don't overwrite methods because we fill the // cache from defined class towards java.lang.Object // and that would cause overridden methods to appear // as if they were not overridden. if (cache.get(methodKey) == null) { cache.put(methodKey, method); methodMap.add(method); if (debugReflection && log.isDebugEnabled()) { log.debug("Adding " + method); } } }
private void put(Method method) { String methodKey = makeMethodKey(method); // We don't overwrite methods because we fill the // cache from defined class towards java.lang.Object // and that would cause overridden methods to appear // as if they were not overridden. if (cache.get(methodKey) == null) { cache.put(methodKey, method); methodMap.add(method); if (debugReflection && log.isDebugEnabled()) { log.debug("Adding " + method); } } }
private void put(Method method) { String methodKey = makeMethodKey(method); // We don't overwrite methods because we fill the // cache from defined class towards java.lang.Object // and that would cause overridden methods to appear // as if they were not overridden. if (cache.get(methodKey) == null) { cache.put(methodKey, method); methodMap.add(method); if (debugReflection) { log.debug("Adding {}", method); } } }
/** * Find a Method using the method name and parameter objects. * * @param name The method name to look up. * @param params An array of parameters for the method. * @return A Method object representing the method to invoke or null. * @throws MethodMap.AmbiguousException When more than one method is a match for the parameters. */ public Method findMethod(final String name, final Object[] params) throws MethodMap.AmbiguousException { return methodCache.get(name, params); }
/** * Find a Method using the method name and parameter objects. * * @param name The method name to look up. * @param params An array of parameters for the method. * @return A Method object representing the method to invoke or null. * @throws MethodMap.AmbiguousException When more than one method is a match for the parameters. */ public Method findMethod(final String name, final Object[] params) throws MethodMap.AmbiguousException { return methodCache.get(name, params); }
/** * Find a Method using the method name and parameter objects. * * @param name The method name to look up. * @param params An array of parameters for the method. * @return A Method object representing the method to invoke or null. * @throws MethodMap.AmbiguousException When more than one method is a match for the parameters. */ public Method findMethod(final String name, final Object[] params) throws MethodMap.AmbiguousException { return methodCache.get(name, params); }