com.jurismarches.vradi
Class VradiContext

java.lang.Object
  extended by jaxx.runtime.context.DefaultJAXXContext
      extended by jaxx.runtime.context.DefaultApplicationContext
          extended by com.jurismarches.vradi.VradiContext
All Implemented Interfaces:
jaxx.runtime.JAXXContext

public class VradiContext
extends jaxx.runtime.context.DefaultApplicationContext


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
static jaxx.runtime.context.JAXXContextEntryDef<AdminPopupUI> ADMIN_UI_ENTRY_DEF
           
static jaxx.runtime.context.JAXXContextEntryDef<EmailPopupUI> EMAIL_UI_ENTRY_DEF
           
protected static VradiContext instance
          l'intance partagée accessible après un appel à la méthode init()
protected  Object lock
          Un objet pour bloquer le context
static jaxx.runtime.context.JAXXContextEntryDef<VradiMainUI> MAIN_UI_ENTRY_DEF
           
static jaxx.runtime.context.JAXXContextEntryDef<OfferListUI> OFFERT_LIST_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
protected VradiContext()
           
 
Method Summary
 void close()
          close the application's context.
static VradiContext get()
          Récupération du contexte applicatif.
 jaxx.runtime.decorator.DecoratorProvider getDecoratorProvider()
          TODO EC20100515 : explain this code !
 jaxx.runtime.swing.renderer.DecoratorProviderListCellRenderer getDecoratorProviderListCellRenderer()
          TODO EC20100515 : explain this code !
 VradiConfig getVradiConfig()
           
static VradiContext init()
          Permet l'initialisation du contexte applicatif et positionne l'instance partagée.
static boolean isInit()
           
 void lock()
           
 void releaseLock()
           
 
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

MAIN_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<VradiMainUI> MAIN_UI_ENTRY_DEF

OFFERT_LIST_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<OfferListUI> OFFERT_LIST_UI_ENTRY_DEF

ADMIN_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<AdminPopupUI> ADMIN_UI_ENTRY_DEF

EMAIL_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<EmailPopupUI> EMAIL_UI_ENTRY_DEF

instance

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


lock

protected final Object lock
Un objet pour bloquer le context

Constructor Detail

VradiContext

protected VradiContext()
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 VradiContext 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 VradiContext 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()

lock

public void lock()
          throws InterruptedException
Throws:
InterruptedException

releaseLock

public void releaseLock()

close

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

Throws:
Exception - if any pb while closing

getVradiConfig

public VradiConfig getVradiConfig()

getDecoratorProvider

public jaxx.runtime.decorator.DecoratorProvider getDecoratorProvider()
TODO EC20100515 : explain this code !

Returns:

getDecoratorProviderListCellRenderer

public jaxx.runtime.swing.renderer.DecoratorProviderListCellRenderer getDecoratorProviderListCellRenderer()
TODO EC20100515 : explain this code !

Returns:


Copyright © 2009-2010 JurisMarches. All Rights Reserved.