vxmlsurfer
Class ApplicationContextManager

java.lang.Object
  extended by vxmlsurfer.ApplicationContextManager

public class ApplicationContextManager
extends java.lang.Object

this class handles application context a new context is created when entering a new application root document or when entering a subdialog

Author:
First Author Eugene Borodin

Field Summary
 java.util.Stack<ApplicationContext> ContextScopes
           
 
Constructor Summary
ApplicationContextManager()
          default constructor
 
Method Summary
 ApplicationContext getCurrentContext()
          get current application context
 boolean popContext()
          removes a new level of application context
 ApplicationContext pushContext(ApplicationContext cxt)
          adds a new level of application context to the stack and returns stack top
 void removeAll()
          clear all application contexts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ContextScopes

public java.util.Stack<ApplicationContext> ContextScopes
Constructor Detail

ApplicationContextManager

public ApplicationContextManager()
default constructor

Method Detail

pushContext

public ApplicationContext pushContext(ApplicationContext cxt)
adds a new level of application context to the stack and returns stack top

Parameters:
cxt - ApplictionContext
Returns:
ApplicationContext

popContext

public boolean popContext()
removes a new level of application context

Returns:
boolean

getCurrentContext

public ApplicationContext getCurrentContext()
get current application context

Returns:
ApplicationContext

removeAll

public void removeAll()
clear all application contexts