jxl.superstatic
Class SSRegistry

java.lang.Object
  extended by jxl.superstatic.SSRegistry

public final class SSRegistry
extends java.lang.Object

Local Superstatic registry. This class is used to get all references to SuperStatic objects.

Author:
Alex Lynch

Method Summary
static SSRegistry getInstance()
          Return a singlton instance of SSRegistry.
<T extends SSObject,S extends java.rmi.Remote>
S
getReference(java.lang.Class<T> type, java.lang.Class<S> reftype)
          Find or create an instance of type, and return a remote reference to it as a reftype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SSRegistry getInstance()
                              throws java.rmi.RemoteException
Return a singlton instance of SSRegistry.

Throws:
java.rmi.RemoteException

getReference

public <T extends SSObject,S extends java.rmi.Remote> S getReference(java.lang.Class<T> type,
                                                                     java.lang.Class<S> reftype)
                                       throws java.rmi.RemoteException
Find or create an instance of type, and return a remote reference to it as a reftype.

Parameters:
type - The type of the SSObject implementation
reftype - the type of the Superstatic reference.
Returns:
A reference to the running SSObject impl as reftype.
Throws:
java.rmi.RemoteException