com.nesstar.api
Class NesstarDBFactory

java.lang.Object
  extended by com.nesstar.api.NesstarDBFactory

public final class NesstarDBFactory
extends Object

A factory for instantiating an implementation of NesstarDB.

Since:
0.1

Method Summary
static NesstarDB getInstance()
          Returns an instance of an implementation of NesstarDB.
static void setImplementationClass(String className)
          Sets the type to be returned by getInstance().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setImplementationClass

public static void setImplementationClass(String className)
                                   throws ClassNotFoundException
Sets the type to be returned by getInstance().

Parameters:
className - Fully qualified name of an implementation class
Throws:
ClassNotFoundException - If the specified class cannot be loaded

getInstance

public static NesstarDB getInstance()
Returns an instance of an implementation of NesstarDB.

Returns:
An object implementing NesstarDB


Copyright © 2011, NSD All rights reserved