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 java.lang.Object implements org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBeanFactory for creating aXStreamMarshallerwith givenXStream, registered availableTypeAliasMappingandTypeConverterMappinginstances as customization of theXStreamMarshaller.
-
-
Constructor Summary
Constructors Constructor Description XmlXStreamMarshallerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected voidconfigureXmlMarshaller(org.springframework.oxm.xstream.XStreamMarshaller marshaller)protected org.springframework.oxm.xstream.XStreamMarshallercreateMarshaller()java.util.List<java.lang.Class<?>>getExcludeClasses()java.lang.ObjectgetObject()protected org.springframework.oxm.xstream.XStreamMarshallergetObjectInternal()java.lang.ClassgetObjectType()protected com.thoughtworks.xstream.XStreamgetXStream()booleanisSingleton()protected voidsetAliases(org.springframework.oxm.xstream.XStreamMarshaller marshaller, java.util.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, java.util.Collection<TypeConverterMapping> typeConvereters)voidsetExcludeClasses(java.util.List<java.lang.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, java.util.Collection<ImplicitCollection> values)protected voidsetOmitted(org.springframework.oxm.xstream.XStreamMarshaller marshaller, java.util.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)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
getObject
public java.lang.Object getObject() throws java.lang.Exception- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
java.lang.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, java.util.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, java.util.Collection<AttributeOmitMapping> omitters)
-
setConverters
protected void setConverters(org.springframework.oxm.xstream.XStreamMarshaller marshaller, java.util.Collection<TypeConverterMapping> typeConvereters)
-
setAliases
protected void setAliases(org.springframework.oxm.xstream.XStreamMarshaller marshaller, java.util.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
public java.lang.Class 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
public java.util.List<java.lang.Class<?>> getExcludeClasses()
-
setExcludeClasses
public void setExcludeClasses(java.util.List<java.lang.Class<?>> excludeClasses)
-
-