Top Description Methods
groovy.transform

public @Interface ExternalizeVerifier

extends Annotation
Annotations
@Documented
@Retention:SOURCE
@Target:TYPE
@GroovyASTTransformationClass:ExternalizeVerifierASTTransformation
Imports
org.codehaus.groovy.transform.GroovyASTTransformationClass, java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Class annotation used to assist in the creation of 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.

Method Summary

Modifier and TypeMethod and Description
public boolean
checkPropertyTypes()

Turns on strict type checking for property (or field) types.

public String[]
excludes()

Comma separated list of property names to exclude from externalization verification.

public boolean
includeFields()

Include fields as well as properties when verifying externalization properties.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

checkPropertyTypesback to summary
public boolean checkPropertyTypes()

Turns on strict type checking for property (or field) types. In strict mode, such types must also implement Serializable or Externalizable. If your properties have interface types that don't implement Serializable but all the concrete implementations do, or the type is of a non-Serializable class but the property will be null at runtime, then your instances will still be serializable but you can't turn on strict checking.

excludesback to summary
public String[] excludes()

Comma separated list of property names to exclude from externalization verification. For convenience, a String with comma separated names can be used in addition to an array (using Groovy's literal list notation) of String values.

includeFieldsback to summary
public boolean includeFields()

Include fields as well as properties when verifying externalization properties.