
public interface MessageCatalogFactory
Implementations of this interface are executed at compile time and therefore must not contain any JSNI code.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MessageCatalogFactory.Context
Context for message catalogs, for things like logging errors.
|
static interface |
MessageCatalogFactory.Writer
Writes translatable messages to a message catalog.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension()
Returns the extension to use for this file type, including the dot.
|
MessageCatalogFactory.Writer |
getWriter(MessageCatalogFactory.Context context,
String fileName)
Return a
MessageCatalogFactory.Writer that can be used to write the source
of the messages to be translated for this class. |
String getExtension()
MessageCatalogFactory.Writer getWriter(MessageCatalogFactory.Context context, String fileName) throws MessageProcessingException
MessageCatalogFactory.Writer that can be used to write the source
of the messages to be translated for this class.context - fileName - relative path for output file, though implementations may
ignore this value and use something else, such as an annotation giving
a database key, for exampleMessageProcessingExceptionCopyright © 2018. All rights reserved.