jaxx.demo
Class RunDemo
java.lang.Object
jaxx.demo.RunDemo
public class RunDemo
- extends Object
- Author:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected static volatile DefaultApplicationContext context
- The singleton instance of the main context
RunDemo
public RunDemo()
main
public static void main(String[] args)
isInit
protected static boolean isInit()
- Returns:
true si le context a été initialisé via la méthode
init(), false autrement.
init
protected static DefaultApplicationContext init()
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.
- Returns:
- l'context partagée
- Throws:
IllegalStateException - si un contexte applicatif a déja été positionné.
get
public static DefaultApplicationContext 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éthode init()
Copyright © 2008-2011 CodeLutin. All Rights Reserved.