spring-oxm

org.springframework.oxm.xmlbeans
Class XmlOptionsFactoryBean

java.lang.Object
  extended by org.springframework.oxm.xmlbeans.XmlOptionsFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>

public class XmlOptionsFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>

FactoryBean that configures an XMLBeans XmlOptions object and provides it as a bean reference.

Typical usage will be to set XMLBeans options on this bean, and refer to it in the XmlBeansMarshaller.

Since:
3.0
Author:
Arjen Poutsma
See Also:
XmlOptions, setOptions(java.util.Map), XmlBeansMarshaller.setXmlOptions(XmlOptions)

Constructor Summary
XmlOptionsFactoryBean()
           
 
Method Summary
 org.apache.xmlbeans.XmlOptions getObject()
           
 java.lang.Class<? extends org.apache.xmlbeans.XmlOptions> getObjectType()
           
 boolean isSingleton()
           
 void setOptions(java.util.Map<java.lang.String,?> optionsMap)
          Set options on the underlying XmlOptions object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlOptionsFactoryBean

public XmlOptionsFactoryBean()
Method Detail

setOptions

public void setOptions(java.util.Map<java.lang.String,?> optionsMap)
Set options on the underlying XmlOptions object.

The keys of the supplied map should be one of the String constants defined in XmlOptions, the values vary per option.

See Also:
XmlOptions.put(Object,Object), XmlOptions.SAVE_PRETTY_PRINT, XmlOptions.LOAD_STRIP_COMMENTS

getObject

public org.apache.xmlbeans.XmlOptions getObject()
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>

getObjectType

public java.lang.Class<? extends org.apache.xmlbeans.XmlOptions> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>

spring-oxm