com.notuvy.util
Class MainContext

java.lang.Object
  extended by com.notuvy.util.MainContext

public class MainContext
extends Object

The framework for setting up the context for a standalone application. It sets system properties that define the application directory, and it initializes the logging. It must be immutable. User: murali Date: Jan 14, 2009 Time: 9:28:35 AM


Field Summary
static String APP_PROPERTY_LOG_NAME
           
 
Constructor Summary
MainContext(String pSubDir, Class pReferenceClass)
           
 
Method Summary
 Directory getAppDir()
           
 org.apache.log4j.Logger getMainLogger()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_PROPERTY_LOG_NAME

public static final String APP_PROPERTY_LOG_NAME
See Also:
Constant Field Values
Constructor Detail

MainContext

public MainContext(String pSubDir,
                   Class pReferenceClass)
Method Detail

getAppDir

public Directory getAppDir()

getMainLogger

public org.apache.log4j.Logger getMainLogger()


Copyright © 2013. All Rights Reserved.