|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasco.Jasco
public class Jasco
JAsCo facade class for compilation and loading of aspect beans, connectors and traversal connectors. Can also be used to insert traps into java beans.
Use setExceptionLogger when you want to get exceptions instead of errors on the error stream when something goes wrong!
Options
Constructor Summary | |
---|---|
Jasco()
|
Method Summary | |
---|---|
static void |
addToClassPath(java.lang.String path)
adds a single directory or jar file to the classpath |
protected static void |
checkFile(java.lang.String f)
|
static void |
compileAndLoadConnector(java.lang.String aConnector)
Compile a connector and places the result in the output directory. |
static void |
compileAspect(java.lang.String aAspect)
Compiles an aspect bean and places it in the output directory. |
static java.lang.String |
compileConnector(java.lang.String aConnector)
Compile a connector and places the result in the output directory. |
static void |
compileRefinement(java.lang.String aRefinement)
Compiles a refining class and places it in the output directory. |
static void |
compileTraversal(java.lang.String connector)
Compiles a traversal connector and places it in the output directory. |
static void |
createIntrospectorWindow()
Creates an introspector gui window |
static java.lang.String |
getClassPath()
returns the classpath represented as a string separated by ; on windows and : on linux |
static java.lang.String |
getOutputDir()
gets the output directory where all entities generated by this class are placed |
static java.lang.Object |
invokeTraversal(java.lang.String traversalName,
java.lang.Object startingObject)
|
static java.lang.Object |
invokeTraversal(java.lang.String traversalName,
java.lang.Object startingObject,
java.lang.String resultMethod)
Invokes a traversal connector |
static void |
loadConnector(Connector aConnector)
Load a connector so that all declared aspect beans are active. |
static void |
loadConnectors()
Forces the connector registry to load new connectors NOW. |
static void |
modifyConnectorLoadingPriority(int pri)
Alters the connector loading priority to a new one. |
static void |
removeConnectorInClassPath(java.lang.String aConnector)
Remove a connector from the classpath. |
static void |
removeConnectorInOutputDir(java.lang.String aConnector)
Remove a connector from the output directory. |
static void |
setExceptionLogger()
Makes sure JAsCo throws an exception instead of printing on the error stream when there are errors. |
static void |
setOutputDir(java.lang.String outputdir)
sets the output directory where all entities generated by this class will be placed |
static void |
setOutputLogger()
Makes sure JAsCo prints on the error stream when there are errors. |
static boolean |
transformBeanInOutputDir(java.lang.String javaBean,
java.util.Vector excluded)
Tranforms a java bean and places the transformed version in the output directory |
static void |
transformBeanInOutputDirInNewVM(java.lang.String javaBean,
java.util.Vector excluded)
Tranforms a java bean and places the transformed version in the output directory. |
static void |
unloadConnector(Connector aConnector)
Unload a connector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jasco()
Method Detail |
---|
public static java.lang.Object invokeTraversal(java.lang.String traversalName, java.lang.Object startingObject, java.lang.String resultMethod)
traversalName
- fully qualified classname of a traversal connectorstartingObject
- the starting object for the traversalresultMethod
- the method for fetching the result, if null no result is fetched
public static java.lang.Object invokeTraversal(java.lang.String traversalName, java.lang.Object startingObject)
public static void setExceptionLogger()
public static void setOutputLogger()
public static void setOutputDir(java.lang.String outputdir)
outputdir
- a string denoting a valid directory (relative or absolute)public static java.lang.String getOutputDir()
public static java.lang.String getClassPath()
public static void addToClassPath(java.lang.String path)
path
- a path or jar filepublic static void compileAspect(java.lang.String aAspect) throws java.io.FileNotFoundException
aAspect
- a file string containing an aspect bean definition
java.io.FileNotFoundException
public static void compileRefinement(java.lang.String aRefinement) throws java.io.FileNotFoundException
aRefinement
- a file string containing a refinement definition
java.io.FileNotFoundException
public static void compileTraversal(java.lang.String connector) throws java.io.FileNotFoundException
connector
- a string denoting a file containing a traversal connector definition
java.io.FileNotFoundException
public static boolean transformBeanInOutputDir(java.lang.String javaBean, java.util.Vector excluded)
javaBean
- a string denoting a fully qualified class name (e.g. java.lang.String)excluded
- a list of method names that cannot be trappedpublic static void transformBeanInOutputDirInNewVM(java.lang.String javaBean, java.util.Vector excluded)
javaBean
- a string denoting a fully qualified class name (e.g. java.lang.String)excluded
- a list of method names that cannot be trapped (not supported yet here)protected static void checkFile(java.lang.String f) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.lang.String compileConnector(java.lang.String aConnector) throws java.io.FileNotFoundException
aConnector
- a string denoting a file that contains a connector definition
java.io.FileNotFoundException
public static void loadConnector(Connector aConnector) throws java.lang.Throwable
aConnector
- a string denoting a file that contains a connector definition
java.lang.Throwable
public static void unloadConnector(Connector aConnector)
aConnector
- a connector singleton instancepublic static void compileAndLoadConnector(java.lang.String aConnector) throws java.lang.Throwable
Make sure outputdir is in the static startup classpath, fails otherwise!!!
aConnector
- a string denoting a file that contains a connector definition
java.lang.Throwable
public static void removeConnectorInOutputDir(java.lang.String aConnector)
aConnector
- A connector NAME (not filename if different).public static void removeConnectorInClassPath(java.lang.String aConnector)
aConnector
- A connector NAME (not filename if different).public static void loadConnectors()
public static void modifyConnectorLoadingPriority(int pri)
pri
- new Priority has to be between [1..10]public static void createIntrospectorWindow()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |