RepositoryManagerFactory Class
- public class RepositoryManagerFactory
extends Object
Used to get the RepositoryManager.
-
Hierarchy
-
Object
RepositoryManagerFactory
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPOSITORY_MANAGER_CACHE_NAME
public static final String
REPOSITORY_MANAGER_CACHE_NAME
RepositoryManagerFactory
public RepositoryManagerFactory()
connect() Method
public static RepositoryManager
connect()
throws NoRepositoriesDefinedException
, RepositoryException
Creates a RepositoryManager and attempts to connect to all configured repositories.
Returns
- RepositoryManager - the connected repository manager.
Exceptions
-
NoRepositoriesDefinedException
- - if there are no repositories to connect to.
-
RepositoryException
- - if a system error occurs.
connect(HttpSession) Method
public static RepositoryManager
connect(HttpSession
session)
throws NoRepositoriesDefinedException
, RepositoryException
Creates a RepositoryManager, adds it to the session
at REPOSITORY_MANAGER_CACHE_NAME and attempts to connect to all configured repositories.
If it is already in the session then return it.
Parameters
-
session
- - the HttpSession to get the manager out of, or put it into if new.
Returns
- RepositoryManager - the connected repository manager.
Exceptions
-
NoRepositoriesDefinedException
- - if there are no repositories to connect to.
-
RepositoryException
- - if a system error occurs.
create() Method
public static RepositoryManager
create()
Creates a RepositoryManager.