Class GenericMarshallingMethodEndpointAdapter
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter
org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,EndpointAdapter
@Deprecated
public class GenericMarshallingMethodEndpointAdapter
extends MarshallingMethodEndpointAdapter
Deprecated.
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
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a newGenericMarshallingMethodEndpointAdapter
.GenericMarshallingMethodEndpointAdapter
(org.springframework.oxm.Marshaller marshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapter
with the given marshaller.GenericMarshallingMethodEndpointAdapter
(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapter
with the given marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
supportsInternal
(MethodEndpoint methodEndpoint) Deprecated.Supports a method with a single, unmarshallable parameter, and that returnvoid
or a marshallable type.Methods inherited from class org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter
afterPropertiesSet, getMarshaller, getUnmarshaller, invokeInternal, setMarshaller, setUnmarshaller
Methods inherited from class org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
invoke, supports
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
-
Constructor Details
-
GenericMarshallingMethodEndpointAdapter
public GenericMarshallingMethodEndpointAdapter()Deprecated.Creates a newGenericMarshallingMethodEndpointAdapter
. TheMarshaller
andUnmarshaller
must be injected using properties. -
GenericMarshallingMethodEndpointAdapter
public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapter
with the given marshaller. If the givenMarshaller
also implements theUnmarshaller
interface, it is used for both marshalling and unmarshalling. Otherwise, an exception is thrown.Note that all
Marshaller
implementations in Spring-WS also implement theUnmarshaller
interface, so that you can safely use this constructor.- Parameters:
marshaller
- object used as marshaller and unmarshaller- Throws:
IllegalArgumentException
- whenmarshaller
does not implement theUnmarshaller
interface
-
GenericMarshallingMethodEndpointAdapter
public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapter
with the given marshaller and unmarshaller.- Parameters:
marshaller
- the marshaller to useunmarshaller
- the unmarshaller to use
-
-
Method Details
-
supportsInternal
Deprecated.Description copied from class:MarshallingMethodEndpointAdapter
Supports a method with a single, unmarshallable parameter, and that returnvoid
or a marshallable type.- Overrides:
supportsInternal
in classMarshallingMethodEndpointAdapter
- 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)
-
DefaultMethodEndpointAdapter
andMarshallingPayloadMethodProcessor
.