Package org.jboss.logging.processor.apt
Class MessageInterfaceFactory
- java.lang.Object
-
- org.jboss.logging.processor.apt.MessageInterfaceFactory
-
public final class MessageInterfaceFactory extends java.lang.Object
A factory to create aMessageInterface
for annotation processors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
MessageInterfaceFactory.AptMessageInterface
Message interface implementation.private static class
MessageInterfaceFactory.LoggerInterface
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object
LOCK
private static MessageInterfaceFactory.LoggerInterface
LOGGER_INTERFACE
-
Constructor Summary
Constructors Modifier Constructor Description private
MessageInterfaceFactory()
Private constructor for factory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.util.Collection<javax.lang.model.element.ExecutableElement>
getMessageMethods(javax.lang.model.element.TypeElement intf)
static MessageInterface
of(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.element.TypeElement interfaceElement, java.util.Properties expressionProperties, boolean addGeneratedAnnotation)
Creates a message interface from theTypeElement
specified by theinterfaceElement
parameter.
-
-
-
Field Detail
-
LOCK
private static final java.lang.Object LOCK
-
LOGGER_INTERFACE
private static volatile MessageInterfaceFactory.LoggerInterface LOGGER_INTERFACE
-
-
Method Detail
-
of
public static MessageInterface of(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.element.TypeElement interfaceElement, java.util.Properties expressionProperties, boolean addGeneratedAnnotation)
Creates a message interface from theTypeElement
specified by theinterfaceElement
parameter.- Parameters:
processingEnv
- the annotation processing environment.interfaceElement
- the interface element to parse.expressionProperties
- the properties used to resolve expressions- Returns:
- a message interface for the interface element.
-
getMessageMethods
private static java.util.Collection<javax.lang.model.element.ExecutableElement> getMessageMethods(javax.lang.model.element.TypeElement intf)
-
-