org.chorem.lima
Class LimaContext

java.lang.Object
  extended by jaxx.runtime.context.DefaultJAXXContext
      extended by jaxx.runtime.context.DefaultApplicationContext
          extended by org.chorem.lima.LimaContext
All Implemented Interfaces:
jaxx.runtime.JAXXContext

public class LimaContext
extends jaxx.runtime.context.DefaultApplicationContext

Author:
chemit

Nested Class Summary
 
Nested classes/interfaces inherited from class jaxx.runtime.context.DefaultApplicationContext
jaxx.runtime.context.DefaultApplicationContext.AutoLoad, jaxx.runtime.context.DefaultApplicationContext.MethodAccess
 
Field Summary
protected static LimaContext instance
          l'intance partagée accessible après un appel à la méthode init()
static jaxx.runtime.context.JAXXContextEntryDef<MainView> MAIN_UI_ENTRY_DEF
           
 
Fields inherited from class jaxx.runtime.context.DefaultApplicationContext
entryListened, forwards, pcs
 
Fields inherited from class jaxx.runtime.context.DefaultJAXXContext
data, PARENT_CONTEXT_ENTRY, parentContext
 
Constructor Summary
LimaContext()
           
 
Method Summary
 void close()
          close the application's context.
static LimaContext get()
          Récupération du contexte applicatif.
 LimaConfig getConfig()
           
static LimaContext getContext()
           
 MainView getMainUI()
           
static LimaContext init()
          Permet l'initialisation du contexte applicatif et positionne l'instance partagée.
 void initI18n(LimaConfig config)
           
static boolean isInit()
           
 
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, setContextValue
 
Methods inherited from class jaxx.runtime.context.DefaultJAXXContext
clear, getContextValue, getEntry, getKey, getKeys, getParentContext, remove0, removeContextValue, setContextValue, setParentContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static LimaContext instance
l'intance partagée accessible après un appel à la méthode init()


MAIN_UI_ENTRY_DEF

public static jaxx.runtime.context.JAXXContextEntryDef<MainView> MAIN_UI_ENTRY_DEF
Constructor Detail

LimaContext

public LimaContext()
Method Detail

isInit

public static boolean isInit()
Returns:
true si le context a été initialisé via la méthode init(), false autrement.

init

public static LimaContext init()
                        throws IllegalStateException
Permet l'initialisation du contexte applicatif et positionne l'instance partagée.

Note : Cette méthode ne peut être appelée qu'une seule fois.

Returns:
l'instance partagée
Throws:
IllegalStateException - si un contexte applicatif a déja été positionné.

get

public static LimaContext get()
                       throws IllegalStateException
Récupération du contexte applicatif.

Returns:
l'instance partagé du contexte.
Throws:
IllegalStateException - si le contexte n'a pas été initialisé via la méthode init()

getConfig

public LimaConfig getConfig()

initI18n

public void initI18n(LimaConfig config)

getMainUI

public MainView getMainUI()

close

public void close()
           throws Exception
close the application's context.

Throws:
Exception - if any pb while closing

getContext

public static LimaContext getContext()


Copyright © 2008-2011 CodeLutin. All Rights Reserved.