@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface Translate
Lets you define a particular translator for a specific property (field or @AlsoLoad method). The translator factory must produce a translator when handed the property on which this annotation is placed.
"Early" translator factories are executed before collection translator factories and therefore can manipulate the whole collection value. Late translator factories are only responsible for translating the contents of a collection.
Modifier and Type | Required Element and Description |
---|---|
Class<? extends TranslatorFactory<?,?>> |
value
Factory class which will be applied to this field.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
early
If true, the factory will be placed early in the chain, before collection translators.
|
public abstract Class<? extends TranslatorFactory<?,?>> value
Copyright © 2016. All rights reserved.