|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.cms.init.CMSManager
public class CMSManager
Mantains the set of connection pool of the configured repositories. Implements methods useful to retrive an istance of a pool an to registry new connection pools
Constructor Summary | |
---|---|
CMSManager()
|
Method Summary | |
---|---|
static void |
destroyInstance()
Deletes an istance of the connection pool for the default repository |
static void |
destroyInstance(java.lang.String name)
Destroy an istance of the connection pool for a specific repository identified by the input name |
static java.lang.String |
getDefaultRepository()
Gets the name of the default repository |
static CMSPool |
getInstance()
Retrives the istance of the connection pool for the default repository |
static CMSPool |
getInstance(java.lang.String name)
Retrives an istance of the connection pool for a specific repository identified by the inupt name |
static boolean |
isRegistered(java.lang.String name)
Checks if a pool with a given name is alrady registered |
protected static void |
registerRepository(CMSPool pool,
java.lang.String name)
Registers a new repository connection pool |
protected static void |
setDefaultRepository(java.lang.String defaultRepository)
Sets the name of the default repository |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMSManager()
Method Detail |
---|
protected static void registerRepository(CMSPool pool, java.lang.String name) throws EMFInternalError
pool,
- the connection pool to registername,
- the name of the repository
EMFInternalError
- Thrown if an error occurs during the registrationpublic static CMSPool getInstance(java.lang.String name) throws EMFInternalError
name,
- name of the repository
EMFInternalError
- Thrown if an error occurs during the retriving operationpublic static boolean isRegistered(java.lang.String name)
name
- name of the pool
public static void destroyInstance(java.lang.String name) throws EMFInternalError
name,
- name of the repository
EMFInternalError
- Thrown if an error occurs during the deletionpublic static CMSPool getInstance() throws EMFInternalError
EMFInternalError
- Thrown if an error occurs during the retriving operationpublic static void destroyInstance() throws EMFInternalError
EMFInternalError
- Thrown if an error occurs during the deletionpublic static java.lang.String getDefaultRepository()
protected static void setDefaultRepository(java.lang.String defaultRepository)
defaultRepository,
- name to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |