org.openbandy.io
Class SerializableFactory

java.lang.Object
  extended by org.openbandy.io.SerializableFactory

public class SerializableFactory
extends java.lang.Object


Constructor Summary
SerializableFactory()
           
 
Method Summary
static java.lang.Object getNewObject(java.lang.String className)
          Creates a new instance of the class with the given name.
static Serializable getNewSerializableObject(java.lang.String className)
          Creates a new instance of the class with the given name and returns it as Serializable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableFactory

public SerializableFactory()
Method Detail

getNewSerializableObject

public static Serializable getNewSerializableObject(java.lang.String className)
Creates a new instance of the class with the given name and returns it as Serializable

Parameters:
className - Fully qualified class name
Returns:
New instance of this type

getNewObject

public static java.lang.Object getNewObject(java.lang.String className)
Creates a new instance of the class with the given name.

Parameters:
className - Fully qualified class name
Returns:
New instance of this type