net.sf.beanlib.utils.xml
Class XStreamFactory

java.lang.Object
  extended by net.sf.beanlib.utils.xml.XStreamFactory

public class XStreamFactory
extends Object

Convenient XStream Factory that uses ID reference and simple class alias registration.

Author:
Joe D. Velopar

Field Summary
private static XStreamFactory inst
           
private  XStream xstream
           
 
Constructor Summary
private XStreamFactory()
           
 
Method Summary
static XStreamFactory getInstance()
           
 XStream getXStream()
           
 void registerAliases(Class[] classes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inst

private static final XStreamFactory inst

xstream

private volatile XStream xstream
Constructor Detail

XStreamFactory

private XStreamFactory()
Method Detail

getInstance

public static XStreamFactory getInstance()

getXStream

public XStream getXStream()

registerAliases

public void registerAliases(Class[] classes)