net.sf.fikin.classmarshaling
Interface ClassSelector

All Known Implementing Classes:
CertificateBasedClassSelector, NamePrefixedClassSelector, NullClassSelector

public interface ClassSelector

This interface is is used by MarshaledObject to select those classes, whose bytecode is to be marshaled together with the object itself.

When serializing objects, there is no universal rule which classes would be present and which not while de-serializing, one has to provide his/her own function.

Users are required to provide their own implementation algorithms for this. created on Aug 2, 2005

Since:
Version:
$Revision: 1.1 $
Author:
fiykov
See Also:
CertificateBasedClassSelector, NamePrefixedClassSelector

Method Summary
 boolean isClassToBeMarshaled(java.lang.Class clazz)
          decide if the class bytecode is to be marshaled
 

Method Detail

isClassToBeMarshaled

boolean isClassToBeMarshaled(java.lang.Class clazz)
decide if the class bytecode is to be marshaled

Parameters:
clazz - is some class, used by marshaled object (or its subclasses)
Returns:
true in case the bytecode is to be marshaled, otherwise false


Copyright © 2007 Nikolay Fiykov. All Rights Reserved.