@Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface MessageSource
MessageSourceCreator
annotation
processor).Modifier and Type | Required Element and Description |
---|---|
String |
bundleBaseName
Base name of the bundle that the class provides messages to.
|
String[] |
processors
Full qualified names of the processors classes (that must implement the
MessageSourceEntryProcessor interface). |
Modifier and Type | Optional Element and Description |
---|---|
String[] |
availableLocales
Available locales that this source must provide messages to.
|
String |
description
Description for the message source file.
|
String[] |
entriesAffix
Strings to be appended to each entry added with the processors.
|
boolean |
processSuperclasses
If the super classes of the current class should also be processed.
|
String |
sourcePath
The source path where the source files should be created.
|
public abstract String bundleBaseName
public abstract String[] processors
MessageSourceEntryProcessor
interface).
The initial idea was to return an array of MessageSourceEntryProcessor
classes. But when
resolving them at the annotation processor, a MirroredTypesException was raised. The work around was to
set the classes qualified names instead and resolve them via reflection later (at the annotation
processor).public abstract String sourcePath
public abstract String description
public abstract String[] availableLocales
public abstract String[] entriesAffix
public abstract boolean processSuperclasses
Copyright © 2013. All Rights Reserved.