DefaultMethodEndpointAdapter and MarshallingPayloadMethodProcessor.@Deprecated public class GenericMarshallingMethodEndpointAdapter extends MarshallingMethodEndpointAdapter
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.
logger| Constructor and Description |
|---|
GenericMarshallingMethodEndpointAdapter()
Deprecated.
Creates a new
GenericMarshallingMethodEndpointAdapter. |
GenericMarshallingMethodEndpointAdapter(Marshaller marshaller)
Deprecated.
Creates a new
GenericMarshallingMethodEndpointAdapter with the given marshaller. |
GenericMarshallingMethodEndpointAdapter(Marshaller marshaller,
Unmarshaller unmarshaller)
Deprecated.
Creates a new
GenericMarshallingMethodEndpointAdapter with the given marshaller and unmarshaller. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
supportsInternal(MethodEndpoint methodEndpoint)
Deprecated.
Supports a method with a single, unmarshallable parameter, and that return
void or a marshallable
type. |
afterPropertiesSet, getMarshaller, getUnmarshaller, invokeInternal, setMarshaller, setUnmarshallerinvoke, supportscreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic GenericMarshallingMethodEndpointAdapter()
GenericMarshallingMethodEndpointAdapter. The Marshaller and Unmarshaller must be injected using properties.public GenericMarshallingMethodEndpointAdapter(Marshaller marshaller)
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.
marshaller - object used as marshaller and unmarshallerIllegalArgumentException - when marshaller does not implement the Unmarshaller
interfacepublic GenericMarshallingMethodEndpointAdapter(Marshaller marshaller, Unmarshaller unmarshaller)
GenericMarshallingMethodEndpointAdapter with the given marshaller and unmarshaller.marshaller - the marshaller to useunmarshaller - the unmarshaller to useprotected boolean supportsInternal(MethodEndpoint methodEndpoint)
MarshallingMethodEndpointAdaptervoid or a marshallable
type.supportsInternal in class MarshallingMethodEndpointAdaptermethodEndpoint - method endpoint to checkMarshaller.supports(Class),
Unmarshaller.supports(Class)