ezc
Interface ContainerContext

All Known Implementing Classes:
DefaultContainerContext

public interface ContainerContext

A ContainerContext encapsulates all application-specific behaviour ... FIXME

Author:
Jens Wyke (jw@jenswyke.com)

Method Summary
 java.lang.Object createComponent(java.lang.String key, ComponentContext ctx, java.lang.Class clazz)
          Responsible for creating and initiating component instances
 boolean isDebugLogEnabled()
           
 boolean isErrorLogEnabled()
           
 boolean isInfoLogEnabled()
           
 void logDebug(java.lang.Object msg)
           
 void logDebug(java.lang.Object msg, java.lang.Throwable t)
           
 void logError(java.lang.Object msg)
           
 void logError(java.lang.Object msg, java.lang.Throwable t)
           
 void logInfo(java.lang.Object msg)
           
 void logInfo(java.lang.Object msg, java.lang.Throwable t)
           
 

Method Detail

createComponent

public java.lang.Object createComponent(java.lang.String key,
                                        ComponentContext ctx,
                                        java.lang.Class clazz)
                                 throws java.lang.Exception
Responsible for creating and initiating component instances

is called from within the container when an instance is requested

Parameters:
key - unique identifier for the component within it's container
ctx - context of the component, provides access to the components (or regular objects) which the current component has registered a dependancy upon
clazz - implentation class for the component
Returns:
Throws:
java.lang.Exception

logDebug

public void logDebug(java.lang.Object msg)

logInfo

public void logInfo(java.lang.Object msg)

logError

public void logError(java.lang.Object msg)

isDebugLogEnabled

public boolean isDebugLogEnabled()

isInfoLogEnabled

public boolean isInfoLogEnabled()

isErrorLogEnabled

public boolean isErrorLogEnabled()

logDebug

public void logDebug(java.lang.Object msg,
                     java.lang.Throwable t)

logInfo

public void logInfo(java.lang.Object msg,
                    java.lang.Throwable t)

logError

public void logError(java.lang.Object msg,
                     java.lang.Throwable t)