Package org.jboss.logging.processor.apt
Class MessageInterfaceFactory
- java.lang.Object
-
- org.jboss.logging.processor.apt.MessageInterfaceFactory
-
public final class MessageInterfaceFactory extends java.lang.ObjectA factory to create aMessageInterfacefor annotation processors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMessageInterfaceFactory.AptMessageInterfaceMessage interface implementation.private static classMessageInterfaceFactory.LoggerInterface
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ObjectLOCKprivate static MessageInterfaceFactory.LoggerInterfaceLOGGER_INTERFACE
-
Constructor Summary
Constructors Modifier Constructor Description privateMessageInterfaceFactory()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 MessageInterfaceof(javax.annotation.processing.ProcessingEnvironment processingEnv, javax.lang.model.element.TypeElement interfaceElement, java.util.Properties expressionProperties, boolean addGeneratedAnnotation)Creates a message interface from theTypeElementspecified by theinterfaceElementparameter.
-
-
-
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 theTypeElementspecified by theinterfaceElementparameter.- 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)
-
-