com.googlecode.mobilityrpc.session
Class ObjectSpace

java.lang.Object
  extended by com.googlecode.mobilityrpc.session.ObjectSpace

public class ObjectSpace
extends Object

A class for mapping UUIDs to objects, such that an object with a given UUID can be retrieved later. This can be useful to allow mobile objects to access other objects shared by the host application, or by other mobile objects.

Author:
Niall Gallagher

Constructor Summary
ObjectSpace()
           
 
Method Summary
static
<T> T
getUuidObject(Class<T> expectedType, UUID uuid)
           
static
<T> void
setUuidObject(UUID uuid, T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSpace

public ObjectSpace()
Method Detail

setUuidObject

public static <T> void setUuidObject(UUID uuid,
                                     T object)

getUuidObject

public static <T> T getUuidObject(Class<T> expectedType,
                                  UUID uuid)


Copyright © 2016. All rights reserved.