Package groovy.transform
Annotation Type ExternalizeVerifier
-
@Documented @Retention(SOURCE) @Target(TYPE) public @interface ExternalizeVerifierClass annotation used to assist in the creation ofExternalizableclasses. The@ExternalizeVerifierannotation instructs the compiler to check that a class haswriteExternal()andreadExternal()methods, implements theExternalizableinterface and that each property (and optionally field) is not final and, optionally for non-primitives, has a type which is eitherExternalizableorSerializable. Properties or fields marked astransientare ignored. This annotation is typically used in conjunction with the@ExternalizeMethodsannotation but most usually not directly but rather via@AutoExternalizablewhich is a shortcut for both annotations.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleancheckPropertyTypesTurns on strict type checking for property (or field) types.java.lang.String[]excludesComma separated list of property names to exclude from externalization verification.booleanincludeFieldsInclude fields as well as properties when verifying externalization properties.
-
-
-
-
checkPropertyTypes
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.- Default:
- false
-
-