jaxx.demo
Class RunDemo

java.lang.Object
  extended by jaxx.demo.RunDemo

public class RunDemo
extends Object

Author:
chemit

Nested Class Summary
protected static class RunDemo.ShutdownHook
           
 
Field Summary
protected static DefaultApplicationContext context
          The singleton instance of the main context
 
Constructor Summary
RunDemo()
           
 
Method Summary
protected static DefaultApplicationContext get()
          Récupération du contexte applicatif.
protected static DefaultApplicationContext init()
          Permet l'initialisation du contexte applicatif et positionne l'context partagée.
protected static boolean isInit()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected static DefaultApplicationContext context
The singleton instance of the main context

Constructor Detail

RunDemo

public RunDemo()
Method Detail

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

protected 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-2010 CodeLutin. All Rights Reserved.