Spring Web Services Framework

org.springframework.oxm.xmlbeans
Class XmlOptionsFactoryBean

java.lang.Object
  extended by org.springframework.oxm.xmlbeans.XmlOptionsFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

public class XmlOptionsFactoryBean
extends Object
implements FactoryBean, InitializingBean

Factory bean 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:
1.0.0
Author:
Arjen Poutsma
See Also:
XmlOptions, setOptions(java.util.Map), XmlBeansMarshaller.setXmlOptions(org.apache.xmlbeans.XmlOptions)

Constructor Summary
XmlOptionsFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
          Returns the singleton XmlOptions.
 Class getObjectType()
          Returns the class of XmlOptions.
 boolean isSingleton()
          Returns true.
 void setOptions(Map options)
          Sets 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

getObject

public Object getObject()
                 throws Exception
Returns the singleton XmlOptions.

Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Returns the class of XmlOptions.

Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Returns true.

Specified by:
isSingleton in interface FactoryBean

setOptions

public void setOptions(Map options)
Sets 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

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.