public class ClassModelFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClassModel |
implementation(MessageInterface messageInterface,
boolean useLogging31)
Creates an implementation code model from the message interface.
|
static ClassModel |
translation(MessageInterface messageInterface,
String translationSuffix,
Map<MessageMethod,String> translations)
Creates a class model for created translation implementations of the message interface.
|
public static ClassModel implementation(MessageInterface messageInterface, boolean useLogging31) throws IllegalArgumentException
messageInterface - the message interface to implement.IllegalArgumentException - if MessageInterface.getAnnotatedType()
returns MessageInterface.AnnotatedType.NONEpublic static ClassModel translation(MessageInterface messageInterface, String translationSuffix, Map<MessageMethod,String> translations) throws IllegalArgumentException
messageInterface - 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.NONECopyright © 2014 JBoss by Red Hat. All Rights Reserved.