|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.TopiaContextFactory
public class TopiaContextFactory
TODO-FD20100507 : Need javadoc + translate the one on methods.
Created: 3 janv. 2006 21:19:37
| Field Summary | |
|---|---|
static String |
CONFIG_BYTECODE_PROVIDER
|
static String |
CONFIG_CONNECTION_PROVIDER
|
static String |
CONFIG_CURRENT_SESSION_CONTEXT_CLASS
|
static String |
CONFIG_DEFAULT_SCHEMA
|
static String |
CONFIG_DIALECT
|
static String |
CONFIG_DRIVER
|
static String |
CONFIG_FORMAT_SQL
|
static String |
CONFIG_GENERATE_STATISTICS
|
static String |
CONFIG_HBM2DDL_AUTO
|
static String |
CONFIG_PASS
|
static String |
CONFIG_POOL_SIZE
|
static String |
CONFIG_SHOW_SQL
|
static String |
CONFIG_URL
|
static String |
CONFIG_USER
|
protected static Map<Properties,TopiaContext> |
contextCache
Cache contenant tous les contexts deja créé. |
| Constructor Summary | |
|---|---|
TopiaContextFactory()
|
|
| Method Summary | |
|---|---|
static TopiaContext |
getContext()
Utilise par defaut le fichier de propriete TopiaContextImpl.properties |
static TopiaContext |
getContext(Properties config)
Methode static permettant de recuperer un context. |
static List<String> |
getContextOpened()
Permet de connaitre la liste des contexts encore en memoire, utile pour du debuggage. |
static void |
removeContext(TopiaContext context)
Used when TopiaContext root is closed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Map<Properties,TopiaContext> contextCache
public static final String CONFIG_DEFAULT_SCHEMA
public static final String CONFIG_USER
public static final String CONFIG_PASS
public static final String CONFIG_DRIVER
public static final String CONFIG_DIALECT
public static final String CONFIG_CONNECTION_PROVIDER
public static final String CONFIG_BYTECODE_PROVIDER
public static final String CONFIG_CURRENT_SESSION_CONTEXT_CLASS
public static final String CONFIG_GENERATE_STATISTICS
public static final String CONFIG_FORMAT_SQL
public static final String CONFIG_HBM2DDL_AUTO
public static final String CONFIG_POOL_SIZE
public static final String CONFIG_SHOW_SQL
public static final String CONFIG_URL
| Constructor Detail |
|---|
public TopiaContextFactory()
| Method Detail |
|---|
public static List<String> getContextOpened()
public static void removeContext(TopiaContext context)
context - closed
public static TopiaContext getContext()
throws TopiaNotFoundException
TopiaNotFoundException - Si le fichier de configuration par defaut
n'est pas retrouvé.
public static TopiaContext getContext(Properties config)
throws TopiaNotFoundException
config - the configuration of the context
TopiaNotFoundException - if any pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||