JBoss Logging I18n Tools 1.0.0.Beta7

org.jboss.logging.model
Class MessageBundleImplementor

java.lang.Object
  extended by org.jboss.logging.model.ClassModel
      extended by org.jboss.logging.model.ImplementationClassModel
          extended by org.jboss.logging.model.MessageBundleImplementor

public class MessageBundleImplementor
extends ImplementationClassModel

Used to generate a message bundle implementation.

Creates an implementation of the interface passed in.

Author:
James R. Perkins, Kevin Pollet - SERLI - (kevin.pollet@serli.com)

Constructor Summary
MessageBundleImplementor(String interfaceName, MethodDescriptors methodDescriptors, String projectCode)
          Creates a new message bundle 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

MessageBundleImplementor

public MessageBundleImplementor(String interfaceName,
                                MethodDescriptors methodDescriptors,
                                String projectCode)
Creates a new message bundle code model.

Parameters:
interfaceName - the interface name.
methodDescriptors - the method descriptions
projectCode - the project code from the annotation.
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.