|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Describes an execution context. An instance of this class acts like
a set of global variables, but in a restricted scope.
A Context
implementation must respect following rules:
Context
object as input parameter,
at least for using its Logger
.
Context
constructor.
DefaultContextFactory
,
ContextPatcher
Method Summary | |
ActionPerformer |
getActionPerformer()
Returns the ActionPerformer that processes
ContextAction s. |
EventBus |
getBus()
Returns the event bus for this context. |
Context |
getContext()
Allows to pass directly a Context object instead
of a Contextualized . |
InputValidationHub |
getInputValidationHub()
Returns the ValidationHub that every
Binding uses implicitely. |
CommandInvoker |
getInvoker()
Returns the CommandInvoker instance used server-side
for executing Command instances on the server. |
org.apache.avalon.framework.logger.Logger |
getLogger()
Returns the base Logger for this context. |
boolean |
isClientSide()
Returns if the application is running client-side. |
boolean |
isServerSide()
Returns if the application is running server-side. |
Method Detail |
public Context getContext()
Context
object instead
of a Contextualized
. Implementations must return this
.
getContext
in interface Contextualized
public org.apache.avalon.framework.logger.Logger getLogger()
Logger
for this context.
Logger
instance.public CommandInvoker getInvoker()
CommandInvoker
instance used server-side
for executing Command
instances on the server.
CommandInvoker
when called in the client context,
null
otherwise.public boolean isClientSide()
isServerSide()
method will return the negation of
isClientSide()
.
true
if running client-side, false otherwise.public boolean isServerSide()
isClientSide()
method will return the negation of
isServerSide()
.
true
if running server-side, false otherwise.public EventBus getBus()
EventBus
instance if running client-side,
null
otherwise.public InputValidationHub getInputValidationHub()
ValidationHub
that every
Binding
uses implicitely.
InputValidationHub
if running client-side,
null
otherwise.public ActionPerformer getActionPerformer()
ActionPerformer
that processes
ContextAction
s.
ActionPerformer
if running client-side,
null
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |