|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.appfuse.utility.ConfigurationUtility
public class ConfigurationUtility
This class serves as a generic configuration utility to prepare configuations to pass to the hibernate exporters.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
A static logger for the class. |
| Constructor Summary | |
|---|---|
ConfigurationUtility()
Creates a new ConfigurationUtility object. |
|
| Method Summary | |
|---|---|
void |
addConfiguredFileSet(org.apache.tools.ant.types.FileSet inFileSet)
This method will add a new file set objects to the list of file sets to be processed. |
protected boolean |
addFile(java.io.File inFilename)
This method will add a file to the configuration depending on the type of file. |
protected org.hibernate.cfg.Configuration |
createConfiguration()
This method will jsut return a new Configuration object. |
protected void |
doConfiguration(org.hibernate.cfg.Configuration inConfiguration)
This method will run some basic preparation and procssing tasks on the configuration such as loading properties files from the file system into a properties object, loading naming strategy classes and entity resolver classes. |
org.hibernate.cfg.Configuration |
getConfiguration()
This method will create a configuration and do some initial processing on that configuration. |
java.io.File |
getConfigurationFile()
Getter for property configuration file. |
java.io.File |
getPropertyFile()
Getter for property property file. |
void |
setConfigurationFile(java.io.File inConfigurationFile)
Setter for the configuration file. |
void |
setEntityResolver(java.lang.String inEntityResolverName)
Setter for the entity resolver. |
void |
setNamingStrategy(java.lang.String inNamingStrategy)
Setter for the naming strategy. |
void |
setPropertyFile(java.io.File inPropertyFile)
Setter for the property file. |
protected void |
validateParameters()
This method will validate any parameters that need to be validated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public ConfigurationUtility()
| Method Detail |
|---|
public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet inFileSet)
inFileSet - A file set to be processed.
public final org.hibernate.cfg.Configuration getConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - thrown if the configuration cannot be constructed.protected org.hibernate.cfg.Configuration createConfiguration()
protected void doConfiguration(org.hibernate.cfg.Configuration inConfiguration)
throws org.apache.maven.plugin.MojoExecutionException
inConfiguration - The configuration to configure.
org.apache.maven.plugin.MojoExecutionException - Thrown if the configuration properties cannot be loaded.protected void validateParameters()
protected boolean addFile(java.io.File inFilename)
throws org.apache.maven.plugin.MojoExecutionException
inFilename - the file name to add to the configuration.
org.apache.maven.plugin.MojoExecutionException - thrown if the file could not be added to the configuration.public java.io.File getConfigurationFile()
public void setConfigurationFile(java.io.File inConfigurationFile)
inConfigurationFile - The value of configuration file.public java.io.File getPropertyFile()
public void setPropertyFile(java.io.File inPropertyFile)
inPropertyFile - The value of property file.public void setEntityResolver(java.lang.String inEntityResolverName)
inEntityResolverName - The value of entity resolver.public void setNamingStrategy(java.lang.String inNamingStrategy)
inNamingStrategy - The value of naming strategy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||