|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PromptDecorator
Classes implementing this interface can be provided by a TelnetServiceExtension
for
contribution in the construction of the user console prompt.
Method Summary | |
---|---|
boolean |
decoratePrompt(SessionState sessionState,
Prompt prompt)
The prompt construction is done incrementally by calling the registered decorators in a sequence determined by their priority (given by the serving extension) relative to the other decorators' priorities. The provided prompt is initialized and may already contain content from higher priority decorators. |
void |
initialize(SessionState sessionState)
Is called at session creation to allow for the decorator to initialize state. Note: It is recommended that decorators be stateless, and all state be stored in the session state. |
Method Detail |
---|
void initialize(SessionState sessionState) throws PromptDecoratorInitializationException
sessionState
- the current session state. At this point the state will not have been set to
active yet. This will be done after all initialization is done.
PromptDecoratorInitializationException
boolean decoratePrompt(SessionState sessionState, Prompt prompt)
sessionState
- the session state
true
to allow lesser priority decorators to decorate the prompt.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |