Package jaxx.demo
Class DemoApplicationContext
java.lang.Object
jaxx.runtime.context.DefaultJAXXContext
jaxx.runtime.context.DefaultApplicationContext
jaxx.demo.DemoApplicationContext
- All Implemented Interfaces:
JAXXContext,JAXXHelpUIHandler
public class DemoApplicationContext extends DefaultApplicationContext implements JAXXHelpUIHandler
Created on 1/9/14.
- Since:
- XXX
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested classes/interfaces inherited from class jaxx.runtime.context.DefaultApplicationContext
DefaultApplicationContext.AutoLoad, DefaultApplicationContext.MethodAccess -
Field Summary
Fields inherited from class jaxx.runtime.context.DefaultApplicationContext
entryListened, forwards, pcsFields inherited from class jaxx.runtime.context.DefaultJAXXContext
data, PARENT_CONTEXT_ENTRY, parentContext -
Constructor Summary
Constructors Constructor Description DemoApplicationContext(DemoConfig config) -
Method Summary
Modifier and Type Method Description static DemoApplicationContextget()Récupération du contexte applicatif.DemoConfiggetConfig()DemoUIgetMainUI()protected static DemoApplicationContextinit(DemoConfig config)Permet l'initialisation du contexte applicatif et positionne l'context partagée.protected static booleanisInit()voidshowHelp(JAXXContext context, JAXXHelpBroker broker, String helpId)Methods inherited from class jaxx.runtime.context.DefaultApplicationContext
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, fireEntryChanged, fireEntryChanged, firePropertyChange, getContextValue, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, newAccess, newAccess, newInstance, removeContextValue, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, setContextValueMethods inherited from class jaxx.runtime.context.DefaultJAXXContext
clear, getContextValue, getEntry, getKey, getKeys, getParentContext, remove0, removeContextValue, setContextValue, setParentContext
-
Constructor Details
-
Method Details
-
isInit
protected static boolean isInit()- Returns:
truesi le context a été initialisé via la méthodeinit(DemoConfig),falseautrement.
-
init
Permet l'initialisation du contexte applicatif et positionne l'context partagée. Note : Cette méthode ne peut être appelée qu'une seule fois.- Parameters:
config- application config- Returns:
- le context partagée
- Throws:
IllegalStateException- si un contexte applicatif a déja été positionné.
-
get
Récupération du contexte applicatif.- Returns:
- l'context partagé du contexte.
- Throws:
IllegalStateException- si le contexte n'a pas été initialisé via la méthodeinit(DemoConfig)
-
getConfig
-
showHelp
- Specified by:
showHelpin interfaceJAXXHelpUIHandler
-
getMainUI
-