public class ClassModelFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClassModel |
implementation(Filer filer,
MessageInterface messageInterface,
boolean useLogging31)
Creates an implementation code model from the message interface.
|
static ClassModel |
translation(Filer filer,
MessageInterface messageInterface,
String translationSuffix,
Map<MessageMethod,String> translations)
Creates a class model for created translation implementations of the message interface.
|
public static ClassModel implementation(Filer filer, MessageInterface messageInterface, boolean useLogging31) throws IllegalArgumentException
filer - the filer used to create the source filemessageInterface - the message interface to implementuseLogging31 - whether or not jboss-logging 3.1 or higher is usedIllegalArgumentException - if interface is not annotated with @MessageBundle or @MessageLoggerpublic static ClassModel translation(Filer filer, MessageInterface messageInterface, String translationSuffix, Map<MessageMethod,String> translations) throws IllegalArgumentException
filer - the filer used to create the source filemessageInterface - the message interface to implement.translationSuffix - the translation locale suffix.translations - a map of the translations for the methods.IllegalArgumentException - if interface is not annotated with @MessageBundle or @MessageLoggerCopyright © 2016 JBoss by Red Hat. All rights reserved.