saker.rmi Documentation TaskDoc JavaDoc Packages
public abstract class SelectorRMIObjectWriteHandler implements RMIObjectWriteHandler
Writes the object based the selection of the subclass implementation.

Subclasses which extend this class can choose what kind of transferring strategy should be used to transfer the given object.
The strategy can be choosen based on the object instance and the target type.

In order to use this class with RMIWriter, subclass it, provide a no-arg default constructor, and use it as the value for the annotation.

Constructors
protected
Creates a new instance.
Methods
public final ObjectWriterKind
Gets the kind of this object write handler.
public abstract RMIObjectWriteHandler
selectWriteHandler(Object obj, Class<?> targettype)
Selects the write handler to use for the given object and target type.
Creates a new instance.
public final ObjectWriterKind getKind()
Overridden from: RMIObjectWriteHandler
Gets the kind of this object write handler.
The kind.
public abstract RMIObjectWriteHandler selectWriteHandler(Object obj, Class<?> targettype)
Selects the write handler to use for the given object and target type.
objThe object to transfer.
targettypeThe target type of the object transfer.
The object write handler to use to transfer the object.