Class XmlXStreamMarshallerFactory
java.lang.Object
de.hybris.platform.ycommercewebservices.xstream.XmlXStreamMarshallerFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.FactoryBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
JsonXStreamMarshallerFactory
public class XmlXStreamMarshallerFactory
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Factory for creating a
XStreamMarshaller with given XStream, registered available
TypeAliasMapping and TypeConverterMapping instances as customization of the XStreamMarshaller
.-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidconfigureXmlMarshaller(org.springframework.oxm.xstream.XStreamMarshaller marshaller) protected org.springframework.oxm.xstream.XStreamMarshallerprotected org.springframework.oxm.xstream.XStreamMarshallerprotected com.thoughtworks.xstream.XStreambooleanprotected voidsetAliases(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<TypeAliasMapping> aliases) voidsetApplicationContext(org.springframework.context.ApplicationContext ctx) protected voidsetAttributeAliasInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeAliasMapping alias) aliases property moving also from element to attributeprotected voidsetAttributeConverterInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, AttributeConverterMapping converterMapping) protected voidsetAttributeOmitInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, AttributeOmitMapping singleOmit) protected voidsetConverters(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<TypeConverterMapping> typeConvereters) voidsetExcludeClasses(List<Class<?>> excludeClasses) protected voidsetFieldAliasInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeAliasMapping alias) aliases property leaving it as elementprotected voidsetImplicitCollections(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<ImplicitCollection> values) protected voidsetOmitted(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<AttributeOmitMapping> omitters) protected voidsetTypeAliasInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeAliasMapping alias) protected voidsetTypeConverterInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeConverterMapping converterMapping) voidsetXStream(com.thoughtworks.xstream.XStream xStream)
-
Constructor Details
-
XmlXStreamMarshallerFactory
public XmlXStreamMarshallerFactory()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
Exception
-
getObjectInternal
protected org.springframework.oxm.xstream.XStreamMarshaller getObjectInternal() -
configureXmlMarshaller
protected void configureXmlMarshaller(org.springframework.oxm.xstream.XStreamMarshaller marshaller) -
setImplicitCollections
protected void setImplicitCollections(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<ImplicitCollection> values) -
getXStream
protected com.thoughtworks.xstream.XStream getXStream() -
createMarshaller
protected org.springframework.oxm.xstream.XStreamMarshaller createMarshaller() -
setXStream
public void setXStream(com.thoughtworks.xstream.XStream xStream) -
setOmitted
protected void setOmitted(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<AttributeOmitMapping> omitters) -
setConverters
protected void setConverters(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<TypeConverterMapping> typeConvereters) -
setAliases
protected void setAliases(org.springframework.oxm.xstream.XStreamMarshaller marshaller, Collection<TypeAliasMapping> aliases) -
setAttributeOmitInternal
protected void setAttributeOmitInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, AttributeOmitMapping singleOmit) -
setAttributeConverterInternal
protected void setAttributeConverterInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, AttributeConverterMapping converterMapping) -
setTypeConverterInternal
protected void setTypeConverterInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeConverterMapping converterMapping) -
setTypeAliasInternal
protected void setTypeAliasInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeAliasMapping alias) -
setAttributeAliasInternal
protected void setAttributeAliasInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeAliasMapping alias) aliases property moving also from element to attribute -
setFieldAliasInternal
protected void setFieldAliasInternal(org.springframework.oxm.xstream.XStreamMarshaller marshaller, TypeAliasMapping alias) aliases property leaving it as element -
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getExcludeClasses
-
setExcludeClasses
-