org.apache.activemq.util
Class XStreamFactoryBean

java.lang.Object
  extended by org.apache.activemq.util.XStreamFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class XStreamFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean


Constructor Summary
XStreamFactoryBean()
           
 
Method Summary
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 boolean isSingleton()
           
 void setAliases(java.util.Map aliases)
          Set a alias/type map, consisting of string aliases mapped to Class instances (or Strings to be converted to Class instances).
 void setAnnotatedClass(java.lang.Class<?> annotatedClass)
          Sets the classes, for which mappings will be read from class-level JDK 1.5+ annotation metadata.
 void setAnnotatedClasses(java.lang.Class<?>[] annotatedClasses)
          Sets annotated classes, for which aliases will be read from class-level JDK 1.5+ annotation metadata.
 void setConverters(com.thoughtworks.xstream.converters.ConverterMatcher[] converters)
          Sets the Converters or SingleValueConverters to be registered with the XStream instance.
 void setMode(int mode)
          Sets the XStream mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamFactoryBean

public XStreamFactoryBean()
Method Detail

setConverters

public void setConverters(com.thoughtworks.xstream.converters.ConverterMatcher[] converters)
Sets the Converters or SingleValueConverters to be registered with the XStream instance.

See Also:
Converter, SingleValueConverter

setAliases

public void setAliases(java.util.Map aliases)
Set a alias/type map, consisting of string aliases mapped to Class instances (or Strings to be converted to Class instances).

See Also:
ClassEditor

setMode

public void setMode(int mode)
Sets the XStream mode.

See Also:
XStream.XPATH_REFERENCES, XStream.ID_REFERENCES, XStream.NO_REFERENCES

setAnnotatedClass

public void setAnnotatedClass(java.lang.Class<?> annotatedClass)
Sets the classes, for which mappings will be read from class-level JDK 1.5+ annotation metadata.

See Also:
Annotations#configureAliases(XStream, Class[])

setAnnotatedClasses

public void setAnnotatedClasses(java.lang.Class<?>[] annotatedClasses)
Sets annotated classes, for which aliases will be read from class-level JDK 1.5+ annotation metadata.

See Also:
Annotations#configureAliases(XStream, Class[])

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.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


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.