com.joanju.cg.core
Class AppContext

java.lang.Object
  extended by com.joanju.cg.core.AppContext

public class AppContext
extends java.lang.Object

Static provider of application context services. For example, if Callgraph is being run as an Eclipse plugin, then the services come from the Eclipse workbench. If this is being run as a servlet in Tomcat or some other container, then the services come from elsewhere.


Constructor Summary
AppContext()
           
 
Method Summary
static ParseUnit createParseUnit(java.io.File file)
           
static java.lang.String getPluginStateLocation()
           
static boolean isEclipsePlugin()
           
static void log(java.lang.Throwable e)
          Log a Throwable, with the Eclipse workbench or whatever the app context is.
static void setLogger(ICallback callback)
          Called by Callgraph Server, to set the logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppContext

public AppContext()
Method Detail

createParseUnit

public static ParseUnit createParseUnit(java.io.File file)

getPluginStateLocation

public static java.lang.String getPluginStateLocation()

isEclipsePlugin

public static boolean isEclipsePlugin()

log

public static void log(java.lang.Throwable e)
Log a Throwable, with the Eclipse workbench or whatever the app context is.


setLogger

public static void setLogger(ICallback callback)
Called by Callgraph Server, to set the logger.



Copyright © 2008 Joanju Software. All Rights Reserved.