com.nhncorp.neptune.common.io
Class NWritableFactories

java.lang.Object
  extended by com.nhncorp.neptune.common.io.NWritableFactories

public class NWritableFactories
extends java.lang.Object

Factories for non-public writables. Defining a factory permits NObjectWritable to be able to construct instances of non-public classes.


Method Summary
static NWritableFactory getFactory(java.lang.Class c)
          Define a factory for a class.
static NWritable newInstance(java.lang.Class c)
          Create a new instance of a class with a defined factory.
static NWritable newInstance(java.lang.Class c, NConfiguration conf)
          Create a new instance of a class with a defined factory.
static void setFactory(java.lang.Class c, NWritableFactory factory)
          Define a factory for a class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setFactory

public static void setFactory(java.lang.Class c,
                              NWritableFactory factory)
Define a factory for a class.


getFactory

public static NWritableFactory getFactory(java.lang.Class c)
Define a factory for a class.


newInstance

public static NWritable newInstance(java.lang.Class c,
                                    NConfiguration conf)
Create a new instance of a class with a defined factory.


newInstance

public static NWritable newInstance(java.lang.Class c)
Create a new instance of a class with a defined factory.