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
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a newGenericMarshallingMethodEndpointAdapter.GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapterwith the given marshaller.GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapterwith the given marshaller and unmarshaller. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleansupportsInternal(MethodEndpoint methodEndpoint) Deprecated.Supports a method with a single, unmarshallable parameter, and that returnvoidor a marshallable type.Methods inherited from class org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter
afterPropertiesSet, getMarshaller, getUnmarshaller, invokeInternal, setMarshaller, setUnmarshallerMethods inherited from class org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
invoke, supportsMethods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
-
Constructor Details
-
GenericMarshallingMethodEndpointAdapter
public GenericMarshallingMethodEndpointAdapter()Deprecated.Creates a newGenericMarshallingMethodEndpointAdapter. TheMarshallerandUnmarshallermust be injected using properties. -
GenericMarshallingMethodEndpointAdapter
public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapterwith the given marshaller. If the givenMarshalleralso implements theUnmarshallerinterface, it is used for both marshalling and unmarshalling. Otherwise, an exception is thrown.Note that all
Marshallerimplementations in Spring-WS also implement theUnmarshallerinterface, so that you can safely use this constructor.- Parameters:
marshaller- object used as marshaller and unmarshaller- Throws:
IllegalArgumentException- whenmarshallerdoes not implement theUnmarshallerinterface
-
GenericMarshallingMethodEndpointAdapter
public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller) Deprecated.Creates a newGenericMarshallingMethodEndpointAdapterwith the given marshaller and unmarshaller.- Parameters:
marshaller- the marshaller to useunmarshaller- the unmarshaller to use
-
-
Method Details
-
supportsInternal
Deprecated.Description copied from class:MarshallingMethodEndpointAdapterSupports a method with a single, unmarshallable parameter, and that returnvoidor a marshallable type.- Overrides:
supportsInternalin 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)
-
DefaultMethodEndpointAdapterandMarshallingPayloadMethodProcessor.