org.jdesktop.wonderland.client.cell.utils
Class CellSelectionRegistry

java.lang.Object
  extended by org.jdesktop.wonderland.client.cell.utils.CellSelectionRegistry

public class CellSelectionRegistry
extends java.lang.Object

A registry for an object that helps decide which Cell to use upon creation.

Author:
Jordan Slott

Method Summary
static CellSelectionSPI getCellSelectionSPI()
          Returns the CellSelectionSPI object to use to determine which Cell to create or null if none has been set.
static void register(CellSelectionSPI spi)
          Registers a CellSelectionSPI object to determine which Cell to use for creation.
static void unregister(CellSelectionSPI spi)
          Removes a CellSelectoinSPI object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(CellSelectionSPI spi)
Registers a CellSelectionSPI object to determine which Cell to use for creation. Currently, the system only supports one such object.

Parameters:
spi - The CellSelectionSPI object to add

unregister

public static void unregister(CellSelectionSPI spi)
Removes a CellSelectoinSPI object.

Parameters:
spi - The CellSelectionSPI object to remove

getCellSelectionSPI

public static CellSelectionSPI getCellSelectionSPI()
Returns the CellSelectionSPI object to use to determine which Cell to create or null if none has been set.

Returns:
The CellSelectionSPI object


Open Wonderland - http://openwonderland.org