public class ClassModelFactory extends Object
Modifier and Type | Method | Description |
---|---|---|
static ClassModel |
implementation(ProcessingEnvironment processingEnv,
MessageInterface messageInterface,
boolean useLogging31) |
Creates an implementation code model from the message interface.
|
static ClassModel |
translation(ProcessingEnvironment processingEnv,
MessageInterface messageInterface,
String translationSuffix,
Map<MessageMethod,String> translations) |
Creates a class model for created translation implementations of the message interface.
|
public static ClassModel implementation(ProcessingEnvironment processingEnv, MessageInterface messageInterface, boolean useLogging31) throws IllegalArgumentException
processingEnv
- the processing environmentmessageInterface
- the message interface to implementuseLogging31
- whether or not jboss-logging 3.1 or higher is usedIllegalArgumentException
- if interface is not annotated with @MessageBundle
or @MessageLogger
public static ClassModel translation(ProcessingEnvironment processingEnv, MessageInterface messageInterface, String translationSuffix, Map<MessageMethod,String> translations) throws IllegalArgumentException
processingEnv
- the processing environmentmessageInterface
- 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 @MessageLogger
Copyright © 2018. All rights reserved.