SunSPOT API V5.0


com.sun.spot.globals
Class SpotGlobals

java.lang.Object
  extended by com.sun.spot.globals.SpotGlobals

public class SpotGlobals
extends Object

SpotGlobals provides access from the SPOT library to objects that are global across the whole VM; that is, not limited to a single isolate. This facility should be used only from SPOT library code, not user applications.

All clients must wrap access to SpotGlobals in a synchronised block: synchronized (SpotGlobals.getMutex()) { // manipulate SpotGlobals here ... }


Constructor Summary
SpotGlobals()
           
 
Method Summary
static Object getGlobal(int key)
           
static Object getMutex()
           
static void setGlobal(int key, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotGlobals

public SpotGlobals()
Method Detail

getMutex

public static Object getMutex()

getGlobal

public static Object getGlobal(int key)

setGlobal

public static void setGlobal(int key,
                             Object value)

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.