Class GenericMarshallingMethodEndpointAdapter

All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, EndpointAdapter

@Deprecated public class GenericMarshallingMethodEndpointAdapter extends MarshallingMethodEndpointAdapter
Deprecated.
as of Spring Web Services 2.0, in favor of DefaultMethodEndpointAdapter and MarshallingPayloadMethodProcessor.
Subclass of MarshallingMethodEndpointAdapter that supports GenericMarshaller and GenericUnmarshaller. More specifically, this adapter is aware of the Method.getGenericParameterTypes() and Method.getGenericReturnType().

Prefer to use this adapter rather than the plain MarshallingMethodEndpointAdapter in combination with Java 5 marshallers, such as the Jaxb2Marshaller.

Since:
1.0.2
Author:
Arjen Poutsma
  • Constructor Details

    • GenericMarshallingMethodEndpointAdapter

      public GenericMarshallingMethodEndpointAdapter()
      Deprecated.
      Creates a new GenericMarshallingMethodEndpointAdapter. The Marshaller and Unmarshaller must be injected using properties.
      See Also:
    • GenericMarshallingMethodEndpointAdapter

      public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller)
      Deprecated.
      Creates a new GenericMarshallingMethodEndpointAdapter with the given marshaller. If the given Marshaller also implements the Unmarshaller interface, it is used for both marshalling and unmarshalling. Otherwise, an exception is thrown.

      Note that all Marshaller implementations in Spring-WS also implement the Unmarshaller interface, so that you can safely use this constructor.

      Parameters:
      marshaller - object used as marshaller and unmarshaller
      Throws:
      IllegalArgumentException - when marshaller does not implement the Unmarshaller interface
    • GenericMarshallingMethodEndpointAdapter

      public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
      Deprecated.
      Creates a new GenericMarshallingMethodEndpointAdapter with the given marshaller and unmarshaller.
      Parameters:
      marshaller - the marshaller to use
      unmarshaller - the unmarshaller to use
  • Method Details

    • supportsInternal

      protected boolean supportsInternal(MethodEndpoint methodEndpoint)
      Deprecated.
      Description copied from class: MarshallingMethodEndpointAdapter
      Supports a method with a single, unmarshallable parameter, and that return void or a marshallable type.
      Overrides:
      supportsInternal in class MarshallingMethodEndpointAdapter
      Parameters:
      methodEndpoint - method endpoint to check
      Returns:
      whether or not this adapter can adapt the given method
      See Also:
      • Marshaller.supports(Class)
      • Unmarshaller.supports(Class)