Package org.nuiton.jaxx.demo
Class DemoApplicationContext
- java.lang.Object
-
- org.nuiton.jaxx.runtime.context.DefaultJAXXContext
-
- org.nuiton.jaxx.runtime.context.DefaultApplicationContext
-
- org.nuiton.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 - dev@tchemit.fr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuiton.jaxx.runtime.context.DefaultApplicationContext
DefaultApplicationContext.AutoLoad, DefaultApplicationContext.MethodAccess
-
-
Field Summary
-
Fields inherited from class org.nuiton.jaxx.runtime.context.DefaultApplicationContext
entryListened, forwards, pcs
-
Fields inherited from class org.nuiton.jaxx.runtime.context.DefaultJAXXContext
data, PARENT_CONTEXT_ENTRY, parentContext
-
-
Constructor Summary
Constructors Constructor Description DemoApplicationContext(DemoConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 org.nuiton.jaxx.runtime.context.DefaultApplicationContext
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, fireEntryChanged, fireEntryChanged, firePropertyChange, getContextValue, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, newAccess, newAccess, newInstance, removeContextValue, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, setContextValue
-
Methods inherited from class org.nuiton.jaxx.runtime.context.DefaultJAXXContext
clear, getContextValue, getEntry, getKey, getKeys, getParentContext, remove0, removeContextValue, setContextValue, setParentContext
-
-
-
-
Constructor Detail
-
DemoApplicationContext
public DemoApplicationContext(DemoConfig config)
-
-
Method Detail
-
isInit
protected static boolean isInit()
- Returns:
truesi le context a été initialisé via la méthodeinit(DemoConfig),falseautrement.
-
init
protected static DemoApplicationContext init(DemoConfig config) throws IllegalStateException
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
public static DemoApplicationContext get() throws IllegalStateException
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
public DemoConfig getConfig()
-
showHelp
public void showHelp(JAXXContext context, JAXXHelpBroker broker, String helpId)
- Specified by:
showHelpin interfaceJAXXHelpUIHandler
-
getMainUI
public DemoUI getMainUI()
-
-