@Documented
@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface ExternalizeVerifier
Externalizable
classes.
The @ExternalizeVerifier
annotation instructs the compiler to check
that a class has writeExternal()
and readExternal()
methods,
implements the Externalizable
interface and that each property (and optionally field) is not final
and, optionally for non-primitives, has a type which is either Externalizable
or Serializable
.
Properties or fields marked as transient
are ignored.
This annotation is typically used in conjunction with the @ExternalizeMethods
annotation but
most usually not directly but rather via @AutoExternalizable
which is a shortcut for both annotations.Modifier and Type | Optional Element and Description |
---|---|
boolean |
checkPropertyTypes
Turns on strict type checking for property (or field) types.
|
java.lang.String[] |
excludes
Comma separated list of property names to exclude from externalization verification.
|
boolean |
includeFields
Include fields as well as properties when verifying externalization properties.
|
public abstract java.lang.String[] excludes
public abstract boolean includeFields
public abstract boolean checkPropertyTypes