com.google.gwt.user.rebind.rpc
Interface SerializableTypeOracle


public interface SerializableTypeOracle

Interface implemented by any class that wants to answer questions about serializable types for a given RemoteService.


Method Summary
 JType[] getSerializableTypes()
          Returns the list of all types that are considered serializable.
 boolean isSerializable(JType type)
          Returns true if the type is serializable.
 boolean maybeInstantiated(JType type)
          Returns true if the type might be instantiated as part of deserialization or serialization.
 

Method Detail

getSerializableTypes

JType[] getSerializableTypes()
Returns the list of all types that are considered serializable.

Returns:
array of serializable types

isSerializable

boolean isSerializable(JType type)
Returns true if the type is serializable. If a type is serializable then there is a secondary type called a FieldSerializer that provides the behavior necessary to serialize or deserialize the fields of an instance.

Parameters:
type - the type that maybe serializable
Returns:
true if the type is serializable

maybeInstantiated

boolean maybeInstantiated(JType type)
Returns true if the type might be instantiated as part of deserialization or serialization.

Parameters:
type - the type to test
Returns:
true if the type might be instantiated