org.apache.avalon.phoenix
Interface BlockContext


public interface BlockContext

Context via which Blocks communicate with container.

Author:
Peter Donald

Field Summary
static String APP_HOME_DIR
           
static String APP_NAME
           
static String NAME
           
 
Method Summary
 File getBaseDirectory()
          Base directory of .sar application.
 Logger getLogger(String name)
          Deprecated. This allows block writers to "break-out" of their logging hierarchy which is considered bad form. Replace by Logger.getChildLogger(String) where original logger is aquired via AbstractLogEnabled.
 String getName()
          Retrieve name of block.
 

Field Detail

APP_NAME

public static final String APP_NAME

APP_HOME_DIR

public static final String APP_HOME_DIR

NAME

public static final String NAME
Method Detail

getBaseDirectory

public File getBaseDirectory()
Base directory of .sar application. TODO: Should this be getHomeDirectory() or getWorkingDirectory() or other? TODO: Should a Block be able to declare it doesn't use the Filesystem? If it declares this then it would be an error to call this method.
Returns:
the base directory

getName

public String getName()
Retrieve name of block.
Returns:
the name of block

getLogger

public Logger getLogger(String name)
Deprecated. This allows block writers to "break-out" of their logging hierarchy which is considered bad form. Replace by Logger.getChildLogger(String) where original logger is aquired via AbstractLogEnabled.

Retrieve logger coresponding to named category.
Returns:
the logger


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.