public static boolean isRemoteable ( Class < ? > valueClass , int rmicCompatible ) { // NOTE: This logic must be kept in sync with write_value. return valueClass . isInterface ( ) && valueClass != Serializable . class && valueClass != Externalizable . class && ( isCORBAObject ( valueClass , rmicCompatible ) || Remote . class . isAssignableFrom ( valueClass ) || isAbstractInterface ( valueClass , rmicCompatible ) ) ; }
Determines whether a value of the specified type could be a remote object reference . This should return true if read_Object or read_abstract_interface is used for this type .