JBoss Logging I18n Tools 1.0.0.Beta7

org.jboss.logging.model
Class MessageLoggerImplementor

java.lang.Object
  extended by org.jboss.logging.model.ClassModel
      extended by org.jboss.logging.model.ImplementationClassModel
          extended by 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

Constructor Summary
MessageLoggerImplementor(String interfaceName, MethodDescriptors methodDescriptors, String projectCode, boolean extendsBasicLogger)
          Creates a new message logger code model.
 
Method Summary
protected  com.sun.codemodel.internal.JCodeModel generateModel()
          Generate the code corresponding to this class model
 
Methods inherited from class org.jboss.logging.model.ImplementationClassModel
getMethodDescriptors, getType, initCause
 
Methods inherited from class org.jboss.logging.model.ClassModel
addMessageMethod, addMessageMethod, create, getClassName, getCodeModel, getDefinedClass, getProjectCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 descriptions
projectCode - the project code from the annotation.
extendsBasicLogger - true if extending the basic logger, otherwise false.
Method Detail

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.

JBoss Logging I18n Tools 1.0.0.Beta7

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.