org.jboss.logging.model
Class MessageLoggerImplementor
java.lang.Object
org.jboss.logging.model.ClassModel
org.jboss.logging.model.ImplementationClassModel
org.jboss.logging.model.MessageLoggerImplementor
public final class MessageLoggerImplementor
- extends ImplementationClassModel
Used to generate a message logger implementation.
Creates an implementation of the interface passed in.
- Author:
- James R. Perkins
|
Method Summary |
protected com.sun.codemodel.internal.JCodeModel |
generateModel()
Generate the code corresponding to this
class model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageLoggerImplementor
public MessageLoggerImplementor(String interfaceName,
MethodDescriptors methodDescriptors,
String projectCode,
boolean extendsBasicLogger)
- Creates a new message logger code model.
- Parameters:
interfaceName - the interface name.methodDescriptors - the method descriptionsprojectCode - the project code from the annotation.extendsBasicLogger - true if extending the basic logger, otherwise false.
generateModel
protected com.sun.codemodel.internal.JCodeModel generateModel()
throws IllegalStateException
- Generate the code corresponding to this
class model
- Overrides:
generateModel in class ImplementationClassModel
- Returns:
- the generated code
- Throws:
IllegalStateException - if the class has already been defined.
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.