Class AbstractActionMethodEndpointMapping

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, EndpointMapping, SoapEndpointMapping
Direct Known Subclasses:
AnnotationActionEndpointMapping

public abstract class AbstractActionMethodEndpointMapping extends AbstractActionEndpointMapping
Abstract base class for WS-Addressing Action-mapped EndpointMapping implementations that map to MethodEndpoints. Provides infrastructure for mapping endpoint methods to actions.
Since:
1.5.0
Author:
Arjen Poutsma
  • Constructor Details

    • AbstractActionMethodEndpointMapping

      public AbstractActionMethodEndpointMapping()
  • Method Details

    • registerMethods

      protected void registerMethods(Object endpoint)
      Helper method that registers the methods of the given bean. This method iterates over the methods of the bean, and calls getActionForMethod(java.lang.reflect.Method) for each. If this returns a URI, the method is registered using AbstractActionEndpointMapping.registerEndpoint(java.net.URI, Object).
      See Also:
    • getActionForMethod

      protected abstract URI getActionForMethod(Method method)
      Returns the action value for the specified method.
    • getEndpointClass

      protected Class<?> getEndpointClass(Object endpoint)
      Return the class or interface to use for method reflection.

      Default implementation delegates to AopUtils.getTargetClass(Object).

      Parameters:
      endpoint - the bean instance (might be an AOP proxy)
      Returns:
      the bean class to expose