portaview
Class Registry

java.lang.Object
  extended byportaview.Registry

public class Registry
extends java.lang.Object

Registry that contains the static content that everyone else needs. This is an organized way to store shared services that one do not want to pass around as function arguments.

Version:
$Id: Registry.java,v 1.4 2003/12/10 06:18:57 wlee Exp $
Author:
William Lee

Constructor Summary
Registry()
           
 
Method Summary
static PortaViewClient getClient()
           
static PortaViewMain getMainApplication()
           
static PortaViewServer getServer()
           
static boolean isMaster()
           
static void reset()
          Initializes the registry.
static void setClient(PortaViewClient client)
          Sets the PortaView client.
static void setMainApplication(PortaViewMain main)
          Sets the main application.
static void setMaster(boolean master)
          Sets the master state for this PortaView.
static void setServer(PortaViewServer server)
          Sets the PortaView server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()
Method Detail

reset

public static void reset()
Initializes the registry.


getClient

public static PortaViewClient getClient()
Returns:
the PortaView client that can be used to talk to remote PortaViews

setClient

public static void setClient(PortaViewClient client)
Sets the PortaView client.

Parameters:
client - PortaView client.

getServer

public static PortaViewServer getServer()
Returns:
the PortaView server.

setServer

public static void setServer(PortaViewServer server)
Sets the PortaView server.

Parameters:
server - PortaView server.

isMaster

public static boolean isMaster()
Returns:
true if this PortaView is a master PortaView.

setMaster

public static void setMaster(boolean master)
Sets the master state for this PortaView.

Parameters:
master - true if you want to make this PortaView a master PortaView, false otherwise.

getMainApplication

public static PortaViewMain getMainApplication()
Returns:
the main PortaView application

setMainApplication

public static void setMainApplication(PortaViewMain main)
Sets the main application.

Parameters:
main - the main application.


Copyright © 2003 The PortaView Team. All Rights Reserved.