com.zphinx.spine.data
Class DataProxyFactory

java.lang.Object
  extended by com.zphinx.spine.data.DataProxyFactory

public class DataProxyFactory
extends Object

DataProxyFactory is used by the spine system to create a suitable dataproxy.

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Method Summary
protected static AbstractDataProxy createProxy(int i)
          Creates a AbstractDataProxy subclass determined by the int parameter.
static AbstractDataProxy getInstance(int i)
          The method which returns a handle to the relevant subclass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final AbstractDataProxy getInstance(int i)
The method which returns a handle to the relevant subclass

Parameters:
i - An int which represents the type of proxy we wish to create
Returns:
AbstractDataProxy the object which implements this interface

createProxy

protected static AbstractDataProxy createProxy(int i)
Creates a AbstractDataProxy subclass determined by the int parameter. use an int value higher than 5

Parameters:
i - The int which determines the proxy to instantiate
Returns:
An instantiated AbstractDataProxy