|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tweed.context.DefaultContextFactory.DefaultContext
A mutable Context
which should not be instantiated
from outside the enclosing class or its derivates.
Constructor Summary | |
protected |
DefaultContextFactory.DefaultContext()
|
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. |
protected void |
initializeClientSide()
|
boolean |
isClientSide()
Returns if the application is running client-side. |
boolean |
isServerSide()
Returns if the application is running server-side. |
void |
setActionPerformer(ActionPerformer actionPerformer)
|
void |
setInvoker(CommandInvoker invoker)
|
void |
setLogger(org.apache.avalon.framework.logger.Logger logger)
|
void |
setServerSide(boolean serverSide)
|
void |
setValidationHub(InputValidationHub validationHub)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DefaultContextFactory.DefaultContext()
Method Detail |
public Context getContext()
Context
Context
object instead
of a Contextualized
. Implementations must return this
.
getContext
in interface Context
public CommandInvoker getInvoker()
Context
CommandInvoker
instance used server-side
for executing Command
instances on the server.
getInvoker
in interface Context
CommandInvoker
when called in the client context,
null
otherwise.public void setInvoker(CommandInvoker invoker)
public boolean isClientSide()
Context
Context.isServerSide()
method will return the negation of
isClientSide()
.
isClientSide
in interface Context
true
if running client-side, false otherwise.public boolean isServerSide()
Context
Context.isClientSide()
method will return the negation of
isServerSide()
.
isServerSide
in interface Context
true
if running server-side, false otherwise.public void setServerSide(boolean serverSide)
public org.apache.avalon.framework.logger.Logger getLogger()
Context
Logger
for this context.
getLogger
in interface Context
Logger
instance.public void setLogger(org.apache.avalon.framework.logger.Logger logger)
public InputValidationHub getInputValidationHub()
Context
ValidationHub
that every
Binding
uses implicitely.
getInputValidationHub
in interface Context
InputValidationHub
if running client-side,
null
otherwise.public void setValidationHub(InputValidationHub validationHub)
public EventBus getBus()
Context
getBus
in interface Context
EventBus
instance if running client-side,
null
otherwise.public ActionPerformer getActionPerformer()
Context
ActionPerformer
that processes
ContextAction
s.
getActionPerformer
in interface Context
ActionPerformer
if running client-side,
null
otherwise.public void setActionPerformer(ActionPerformer actionPerformer)
protected void initializeClientSide()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |