Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.project
Class ProjectConfigurator  view ProjectConfigurator download ProjectConfigurator.java

java.lang.Object
  extended byorg.objectstyle.cayenne.project.ProjectConfigurator

public class ProjectConfigurator
extends java.lang.Object

Performs on the fly reconfiguration of Cayenne projects.


Field Summary
protected  ProjectConfigInfo info
           
private static org.apache.log4j.Logger logObj
           
 
Constructor Summary
ProjectConfigurator(ProjectConfigInfo info)
           
 
Method Summary
protected  void cleanup(java.io.File dir)
          Deletes a temporary directories and files created.
 void execute()
          Performs reconfiguration of the project.
protected  java.io.File makeTempDestJar()
          Returns a temporary file for the destination jar.
protected  java.io.File makeTempDirectory()
          Creates a temporary directory to unjar the jar file.
protected  void reconfigureProject(java.io.File projectDir)
          Performs reconfiguration of the unjarred project.
protected  void validate()
          Validates consistency of the reconfiguration information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logObj

private static org.apache.log4j.Logger logObj

info

protected ProjectConfigInfo info
Constructor Detail

ProjectConfigurator

public ProjectConfigurator(ProjectConfigInfo info)
Method Detail

execute

public void execute()
             throws ProjectException
Performs reconfiguration of the project.


reconfigureProject

protected void reconfigureProject(java.io.File projectDir)
                           throws ProjectException
Performs reconfiguration of the unjarred project.


makeTempDestJar

protected java.io.File makeTempDestJar()
                                throws java.io.IOException
Returns a temporary file for the destination jar.


cleanup

protected void cleanup(java.io.File dir)
Deletes a temporary directories and files created.


makeTempDirectory

protected java.io.File makeTempDirectory()
                                  throws java.io.IOException
Creates a temporary directory to unjar the jar file.


validate

protected void validate()
                 throws java.io.IOException,
                        ProjectException
Validates consistency of the reconfiguration information.