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(org.springframework.oxm.Marshaller marshaller)
Deprecated.
Creates a new
GenericMarshallingMethodEndpointAdapter with the given marshaller. |
GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller,
org.springframework.oxm.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, setUnmarshaller
invoke, supports
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public GenericMarshallingMethodEndpointAdapter()
GenericMarshallingMethodEndpointAdapter
. The Marshaller
and Unmarshaller
must be injected using properties.public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.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(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
GenericMarshallingMethodEndpointAdapter
with the given marshaller and unmarshaller.marshaller
- the marshaller to useunmarshaller
- the unmarshaller to useprotected boolean supportsInternal(MethodEndpoint methodEndpoint)
MarshallingMethodEndpointAdapter
void
or a marshallable
type.supportsInternal
in class MarshallingMethodEndpointAdapter
methodEndpoint
- method endpoint to checkMarshaller.supports(Class)
,
Unmarshaller.supports(Class)
Copyright © 2020 Pivotal Software. All rights reserved.