public class ClassModelFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ClassModelFactory()
Private constructor for the factory.
|
Modifier and Type | Method and Description |
---|---|
static ClassModel |
implementation(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
boolean useLogging31)
Creates an implementation code model from the message interface.
|
static ClassModel |
translation(javax.annotation.processing.Filer filer,
MessageInterface messageInterface,
java.lang.String translationSuffix,
java.util.Map<MessageMethod,java.lang.String> translations)
Creates a class model for created translation implementations of the message interface.
|
private ClassModelFactory()
public static ClassModel implementation(javax.annotation.processing.Filer filer, MessageInterface messageInterface, boolean useLogging31) throws java.lang.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 usedjava.lang.IllegalArgumentException
- if MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONE
public static ClassModel translation(javax.annotation.processing.Filer filer, MessageInterface messageInterface, java.lang.String translationSuffix, java.util.Map<MessageMethod,java.lang.String> translations) throws java.lang.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.java.lang.IllegalArgumentException
- if MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONE