org.jboss.jca.codegenerator.code
Class RaCodeGen

java.lang.Object
  extended by org.jboss.jca.codegenerator.BaseGen
      extended by org.jboss.jca.codegenerator.code.AbstractCodeGen
          extended by org.jboss.jca.codegenerator.code.PropsCodeGen
              extended by org.jboss.jca.codegenerator.code.RaCodeGen

public class RaCodeGen
extends PropsCodeGen

A resource adapter code generator

Version:
$Revision: $
Author:
Jeff Zhang

Constructor Summary
RaCodeGen()
           
 
Method Summary
 String getClassName(Definition def)
          get this class name
 List<ConfigPropType> getConfigProps(Definition def)
          get list of ConfigPropType
 void writeClassBody(Definition def, Writer out)
          Output ResourceAdapater class
 void writeImport(Definition def, Writer out)
          Output class import
 
Methods inherited from class org.jboss.jca.codegenerator.code.AbstractCodeGen
generate, getNumOfMcf, setNumOfMcf
 
Methods inherited from class org.jboss.jca.codegenerator.BaseGen
writeEol, writeheader, writeIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RaCodeGen

public RaCodeGen()
Method Detail

writeClassBody

public void writeClassBody(Definition def,
                           Writer out)
                    throws IOException
Output ResourceAdapater class

Specified by:
writeClassBody in class AbstractCodeGen
Parameters:
def - definition
out - Writer
Throws:
IOException - ioException

writeImport

public void writeImport(Definition def,
                        Writer out)
                 throws IOException
Output class import

Specified by:
writeImport in class AbstractCodeGen
Parameters:
def - definition
out - Writer
Throws:
IOException - ioException

getClassName

public String getClassName(Definition def)
get this class name

Specified by:
getClassName in class AbstractCodeGen
Parameters:
def - definition
Returns:
String class name

getConfigProps

public List<ConfigPropType> getConfigProps(Definition def)
get list of ConfigPropType

Specified by:
getConfigProps in class PropsCodeGen
Parameters:
def - definition
Returns:
List List of ConfigPropType


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)