/** * Returns the endpoint keys for the given method. Should return an empty array if the method is not to be * registered. The default delegates to {@link #getLookupKeysForMethod(Method)}. * * @param method the method * @return a list of registration keys * @since 2.2 */ protected List<T> getLookupKeysForMethod(Method method) { T key = getLookupKeyForMethod(method); return key != null ? Collections.singletonList(key) : Collections.<T>emptyList(); }
/** * Returns the endpoint keys for the given method. Should return an empty array if the method is not to be * registered. The default delegates to {@link #getLookupKeysForMethod(Method)}. * * @param method the method * @return a list of registration keys * @since 2.2 */ protected List<T> getLookupKeysForMethod(Method method) { T key = getLookupKeyForMethod(method); return key != null ? Collections.singletonList(key) : Collections.<T>emptyList(); }
/** * Returns the endpoint keys for the given method. Should return an empty array if the method is not to be * registered. The default delegates to {@link #getLookupKeysForMethod(Method)}. * * @param method the method * @return a list of registration keys * @since 2.2 */ protected List<T> getLookupKeysForMethod(Method method) { T key = getLookupKeyForMethod(method); return key != null ? Collections.singletonList(key) : Collections.<T>emptyList(); }
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException { T key = getLookupKeyForMethod(method); if (key != null) { registerEndpoint(key, new MethodEndpoint(endpoint, method)); } } });
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException { T key = getLookupKeyForMethod(method); if (key != null) { registerEndpoint(key, new MethodEndpoint(beanName, getApplicationContext(), method)); } }