public class ClassModelFactory extends Object
Modifier and Type | Method and Description |
---|---|
static ClassModel |
implementation(ProcessingEnvironment processingEnv,
MessageInterface messageInterface)
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) throws IllegalArgumentException
processingEnv
- the processing environmentmessageInterface
- the message interface to implementIllegalArgumentException
- 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 © 2020 JBoss by Red Hat. All rights reserved.