toolbox.servicegen
Class DaoServiceGenModule

Package class diagram package DaoServiceGenModule
java.lang.Object
  extended by toolbox.servicegen.DaoServiceGenModule
All Implemented Interfaces:
ServiceGenModule

public class DaoServiceGenModule
extends java.lang.Object
implements ServiceGenModule

Service Generator module to create services that use the toolbox.dao package to query and update an RDBMS.


Constructor Summary
DaoServiceGenModule()
          Default constructor.
 
Method Summary
 void generateService(java.lang.String templateDir, java.lang.String javaDir, java.lang.String svcDir, java.lang.String def)
          Method to handle the generation of the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoServiceGenModule

public DaoServiceGenModule()
Default constructor.

Method Detail

generateService

public void generateService(java.lang.String templateDir,
                            java.lang.String javaDir,
                            java.lang.String svcDir,
                            java.lang.String def)
                     throws java.lang.Exception
Method to handle the generation of the service.

Specified by:
generateService in interface ServiceGenModule
Parameters:
templateDir - String indicating the path where the generation templates are located.
javaDir - String indicating the path where generated java code will be written.
svcDir - String indicating the path where generated configurations will be written.
def - String containing the path to the definition file.
Throws:
java.lang.Exception - if the generation cannot be performed.