com.bea.content.manager
Class RepositoryManagerFactory
java.lang.Object
com.bea.content.manager.RepositoryManagerFactory
- public class RepositoryManagerFactory
- extends Object
Used to get the RepositoryManager.
Methods inherited 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
- See Also:
- Constant Field Values
RepositoryManagerFactory
public RepositoryManagerFactory()
connect
public static RepositoryManager connect()
throws NoRepositoriesDefinedException,
RepositoryException
- Creates a RepositoryManager and attempts to connect to all configured repositories.
- Returns:
- RepositoryManager - the connected repository manager.
- Throws:
NoRepositoriesDefinedException
- - if there are no repositories to connect to.
RepositoryException
- - if a system error occurs.
connect
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.
- Throws:
NoRepositoriesDefinedException
- - if there are no repositories to connect to.
RepositoryException
- - if a system error occurs.
create
public static RepositoryManager create()
- Creates a RepositoryManager.
Copyright © 2005 BEA Systems, Inc. All Rights Reserved