public interface

SerializableTypeOracle

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

Class Overview

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

Summary

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

Public Methods

public abstract JType[] getSerializableTypes ()

Returns the list of all types that are considered serializable.

Returns
  • array of serializable types

public abstract 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

public abstract 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