Package org.nuiton.topia
Class TopiaContextFactory
java.lang.Object
org.nuiton.topia.TopiaContextFactory
TODO-FD20100507 : Need javadoc + translate the one on methods.
Created: 3 janv. 2006 21:19:37
- Version:
- $Id$
- Author:
- poussin <poussin@codelutin.com>, tchemit <tchemit@codelutin.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static Map<Properties,TopiaContext> Cache contenant tous les contexts deja créé. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TopiaContextUtilise par defaut le fichier de propriete TopiaContextImpl.propertiesstatic TopiaContextgetContext(Properties config) Methode static permettant de recuperer un context.Permet de connaitre la liste des contexts encore en memoire, utile pour du debuggage.static voidremoveContext(TopiaContext context) Used when TopiaContext root is closed
-
Field Details
-
contextCache
Cache contenant tous les contexts deja créé. -
CONFIG_DEFAULT_SCHEMA
- See Also:
-
CONFIG_USER
- See Also:
-
CONFIG_PASS
- See Also:
-
CONFIG_DRIVER
- See Also:
-
CONFIG_DIALECT
- See Also:
-
CONFIG_CONNECTION_PROVIDER
- See Also:
-
CONFIG_BYTECODE_PROVIDER
- See Also:
-
CONFIG_CURRENT_SESSION_CONTEXT_CLASS
- See Also:
-
CONFIG_GENERATE_STATISTICS
- See Also:
-
CONFIG_FORMAT_SQL
- See Also:
-
CONFIG_HBM2DDL_AUTO
- See Also:
-
CONFIG_POOL_SIZE
- See Also:
-
CONFIG_SHOW_SQL
- See Also:
-
CONFIG_URL
- See Also:
-
CONFIG_PERSISTENCE_DIRECTORIES
- See Also:
-
CONFIG_PERSISTENCE_CLASSES
- See Also:
-
CONFIG_PERSISTENCE_PROPERTIES_FILE
- See Also:
-
-
Constructor Details
-
TopiaContextFactory
public TopiaContextFactory()
-
-
Method Details
-
getContextOpened
Permet de connaitre la liste des contexts encore en memoire, utile pour du debuggage.- Returns:
- la liste des urls de connexion
-
removeContext
Used when TopiaContext root is closed- Parameters:
context- closed
-
getContext
Utilise par defaut le fichier de propriete TopiaContextImpl.properties- Returns:
- the context using the default configuration file
- Throws:
TopiaNotFoundException- Si le fichier de configuration par defaut n'est pas retrouvé.
-
getContext
Methode static permettant de recuperer un context. Si on donne plusieurs fois le meme objet config, on obtient la meme instance de TopiaContextImpl. Si le context qui devrait etre retourné est ferme, alors un nouveau est creer et retourné.- Parameters:
config- the configuration of the context- Returns:
- Un TopiaContext ouvert
- Throws:
TopiaNotFoundException- if any pb
-