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 .
  • Constructor Details

    • XmlXStreamMarshallerFactory

      public XmlXStreamMarshallerFactory()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getObject

      public Object getObject() throws Exception
      Specified by:
      getObject in interface org.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

      public Class getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getExcludeClasses

      public List<Class<?>> getExcludeClasses()
    • setExcludeClasses

      public void setExcludeClasses(List<Class<?>> excludeClasses)