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 MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONE
public 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 MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONE
Copyright © 2017 JBoss by Red Hat. All rights reserved.