Abstract base class for
MethodEndpoint mappings.
Subclasses typically implement
org.springframework.beans.factory.config.BeanPostProcessor to look for beans
that qualify as enpoint. The methods of this bean are then registered under a specific key with
AbstractMethodEndpointMapping.registerEndpoint(String,MethodEndpoint) .
author: Arjen Poutsma since: 1.0.0
Return the class or interface to use for method reflection.
Default implementation returns the target class for a CGLIB proxy, and the class of the given bean else (for a
JDK proxy or a plain bean class).
Parameters: endpoint - the bean instance (might be an AOP proxy) the bean class to expose
Returns the the endpoint keys for the given method. Returns null if the method is not to be
registered, which is the default.
Parameters: method - the method a registration key, or null if the method is not to be registered
Looks up an endpoint instance for the given keys. All keys are tried in order.
Parameters: key - key the beans are mapped to the associated endpoint instance, or null if not found
Register the given endpoint instance under the key.
Parameters: key - the lookup key Parameters: endpoint - the method endpoint instance throws: BeansException - if the endpoint could not be registered