|
|||||||||||
| 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
ContextActions. |
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()
ContextContext object instead
of a Contextualized. Implementations must return this.
getContext in interface Contextpublic CommandInvoker getInvoker()
ContextCommandInvoker instance used server-side
for executing Command instances on the server.
getInvoker in interface ContextCommandInvoker when called in the client context,
null otherwise.public void setInvoker(CommandInvoker invoker)
public boolean isClientSide()
ContextContext.isServerSide() method will return the negation of
isClientSide().
isClientSide in interface Contexttrue if running client-side, false otherwise.public boolean isServerSide()
ContextContext.isClientSide() method will return the negation of
isServerSide().
isServerSide in interface Contexttrue if running server-side, false otherwise.public void setServerSide(boolean serverSide)
public org.apache.avalon.framework.logger.Logger getLogger()
ContextLogger for this context.
getLogger in interface ContextLogger instance.public void setLogger(org.apache.avalon.framework.logger.Logger logger)
public InputValidationHub getInputValidationHub()
ContextValidationHub that every
Binding uses implicitely.
getInputValidationHub in interface ContextInputValidationHub if running client-side,
null otherwise.public void setValidationHub(InputValidationHub validationHub)
public EventBus getBus()
Context
getBus in interface ContextEventBus instance if running client-side,
null otherwise.public ActionPerformer getActionPerformer()
ContextActionPerformer that processes
ContextActions.
getActionPerformer in interface ContextActionPerformer 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 | ||||||||||