|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.utilities.Compiler
public class Compiler
Constructor Summary | |
---|---|
Compiler()
Compiler Constructor without parameters loadProperties - load property parameters from default property file |
|
Compiler(com.lutris.util.Config config)
Compiler Constructor for given Config object for loading properties loadProperties - load property parameters from default property file |
|
Compiler(java.io.File propertyFile)
Compiler Constructor for given property file for loading properties loadProperties - load property parameters from default property file |
|
Compiler(java.io.InputStream propertyIs)
Compiler Constructor for given Input stream for loading properties loadProperties - load property parameters from default property file |
|
Compiler(java.util.Properties properties)
Compiler Constructor for given Properties object for loading properties loadProperties - load property parameters from default property file |
|
Compiler(java.lang.String propertyFileName)
Compiler Constructor for given property file name for loading properties loadProperties - load property parameters from default property file |
Method Summary | |
---|---|
void |
autoCompile(boolean force)
Method : autoCompile() Method for auto compile - it first creates auto compile parameters fom property file - depend of parameter format (which is defined in property file) it calls compileSingle(fullParameterString) or compileArray(fullParameterArray) function |
void |
autoCompile(java.lang.String sourceDir,
java.lang.String outDir,
boolean force)
Method : autoCompile(String sourceDir,String outputDir,boolean force) Method for auto compile - it first creates auto compile parameters fom property file - depend of parameter format (which is defined in property file) it calls compileSingle(fullParameterString) or compileArray(fullParameterArray) function |
void |
clearHistory()
Clear timestamp cache |
void |
compile(java.lang.String fileName,
boolean force)
Method : Compile(String fileName)) compile single java file as parameter accepts full path to java file compiler class, output dir, and compiler parameters gets from properties |
void |
compile(java.lang.String fileName,
java.lang.String outDir,
boolean force)
Method : Compile(String fileName, String outDir)) compile single java file as parameter accepts full path to java file and output directory compiler class and compiler parameters gets from properties |
void |
compile(java.lang.String fileName,
java.lang.String outDir,
java.lang.String[] parameters,
boolean force)
Method : Compile(String fileName, String outDir, String[] parameters)) compile single java file as parameter accepts full path to java file,output directory and array of other parameters for compiler compiler class gets from properties |
com.lutris.logging.LogChannel |
getLogChannel()
|
java.lang.String |
getProperty(java.lang.String key)
Function for getting property as String |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultVal)
Function for getting property as String with default value |
java.lang.String[] |
getPropertyArray(java.lang.String key)
Function for getting property as String[] |
java.lang.String[] |
getPropertyArray(java.lang.String key,
java.lang.String[] defaultVal)
Function for getting property as String[] with default value |
boolean |
isCompiledOnce()
|
void |
putInClassHash(java.lang.String key,
java.lang.Long value)
Put java files timestamps in HashTable javaFilesTimestamps |
void |
runThread(int time)
start thread |
boolean |
saveProperties()
Save property file |
void |
setLogChannel(com.lutris.logging.LogChannel logChannel)
Function for set logChannel |
void |
setProperty(java.lang.String key,
java.lang.String newVal)
|
void |
setPropertyArray(java.lang.String key,
java.lang.String[] newValues)
Set property as String[] , and remove old values |
void |
stopThread(int time)
stop thread |
void |
updateCache()
Update timestamp cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Compiler() throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public Compiler(java.lang.String propertyFileName) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
propertyFileName
- - filename for properties file
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public Compiler(java.io.File propertyFile) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
propertyFile
- - properties file
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public Compiler(java.io.InputStream propertyIs) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
propertyIs
- - InpuStream for properties file
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public Compiler(java.util.Properties properties) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
properties
- - properties object
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public Compiler(com.lutris.util.Config config) throws java.lang.Exception
config
- -Config object
java.lang.Exception
Method Detail |
---|
public boolean isCompiledOnce()
public void compile(java.lang.String fileName, boolean force) throws java.lang.Exception
fileName
- - full path to java file for compile
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.Exception
public void compile(java.lang.String fileName, java.lang.String outDir, boolean force) throws java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException
fileName
- - full path to java file for compileoutDir
- - full path to dir where will be stored class files
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
public void compile(java.lang.String fileName, java.lang.String outDir, java.lang.String[] parameters, boolean force) throws java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException
fileName
- - full path to java file for compileoutDir
- - full path to dir where will be stored class filesparameters
- - prameters for compilation as String[]
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
public void autoCompile(boolean force) throws java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException
force
- - false(compile only if it's a new java src file), true (compile
anyway)
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
public void autoCompile(java.lang.String sourceDir, java.lang.String outDir, boolean force) throws java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException, java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException, java.lang.IllegalAccessException
sourceDir
- - dir with src java filesoutputDir
- - dir for compiled java classesforce
- - false(compile only if it's a new java src file), true (compile
anyway)
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
public void putInClassHash(java.lang.String key, java.lang.Long value)
key
- - full java src file pathvalue
- - timestamp valuepublic java.lang.String getProperty(java.lang.String key, java.lang.String defaultVal)
key
- - key for property value in property filedefaultVal
- - String default value if value for given key doesn't exist
public java.lang.String getProperty(java.lang.String key)
key
- - key for property value in property file
public java.lang.String[] getPropertyArray(java.lang.String key, java.lang.String[] defaultVal)
key
- - key for property value in property filedefaultVal
- - String[] default value if value for given key doesn't exist
public java.lang.String[] getPropertyArray(java.lang.String key)
key
- - key for property value in property file
public void setProperty(java.lang.String key, java.lang.String newVal) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
key
- - key for property value in property filenewVal
- - String value that will be positioned in property object
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public void setPropertyArray(java.lang.String key, java.lang.String[] newValues) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
key
- - key for property value in property filenewValues
- - String[] value that will be positioned in property object
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
public boolean saveProperties()
public void clearHistory()
public void updateCache()
public void runThread(int time)
time
- - timeout for threadpublic void stopThread(int time)
time
- - timeout for threadpublic com.lutris.logging.LogChannel getLogChannel()
public void setLogChannel(com.lutris.logging.LogChannel logChannel)
newLogChannel
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |