public class NuxeoContainer extends Object
This code is called by the factories registered through JNDI, or by unit tests mimicking JNDI bindings.
Modifier and Type | Class and Description |
---|---|
static class |
NuxeoContainer.ConnectionManagerWrapper
Wraps a Geronimo ConnectionManager and adds a
NuxeoContainer.ConnectionManagerWrapper.reset() method to
flush the pool. |
static class |
NuxeoContainer.InstallContext |
static class |
NuxeoContainer.TransactionManagerConfiguration |
static class |
NuxeoContainer.TransactionManagerWrapper
Wraps a transaction manager for providing a dummy recoverable interface.
|
static class |
NuxeoContainer.UserTransactionImpl
User transaction that uses this container's transaction manager.
|
Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NUXEO_CONNECTION_MANAGER_PREFIX |
static String |
JNDI_TRANSACTION_MANAGER |
static String |
JNDI_USER_TRANSACTION |
Modifier and Type | Method and Description |
---|---|
static void |
addDeepBinding(String name,
Object obj)
Bind object in root context.
|
static void |
addListener(NuxeoContainerListener listener) |
static ConnectionManager |
getConnectionManager(String repositoryName)
Gets the Nuxeo connection manager used by the container.
|
static NuxeoContainer.InstallContext |
getInstallContext() |
static Context |
getRootContext()
Exposes the
rootContext . |
static TransactionManager |
getTransactionManager()
Gets the transaction manager used by the container.
|
static UserTransaction |
getUserTransaction()
Gets the user transaction used by the container.
|
static NuxeoContainer.ConnectionManagerWrapper |
initConnectionManager(String repositoryName,
NuxeoConnectionManagerConfiguration config) |
static void |
initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config) |
static void |
install()
Install naming and bind transaction and connection management factories
"by hand".
|
static void |
install(NuxeoContainer.TransactionManagerConfiguration txconfig)
Install transaction and connection management "by hand" if the container
didn't do it using file-based configuration.
|
static NuxeoContainer.ConnectionManagerWrapper |
installConnectionManager(String repositoryName,
NuxeoConnectionManagerConfiguration config)
Creates and installs in the container a new ConnectionManager.
|
static void |
installNaming()
setup root naming context and install initial naming context factory
|
static boolean |
isInstalled() |
static void |
removeListener(NuxeoContainerListener listener) |
static void |
resetConnectionManager() |
static void |
uninstall() |
static void |
uninstallNaming()
release naming context and revert settings
|
public static final String JNDI_TRANSACTION_MANAGER
public static final String JNDI_USER_TRANSACTION
public static final String JNDI_NUXEO_CONNECTION_MANAGER_PREFIX
public static void install() throws NamingException
NamingException
public static void install(NuxeoContainer.TransactionManagerConfiguration txconfig) throws NamingException
txconfig
- the transaction manager configurationNamingException
public static NuxeoContainer.ConnectionManagerWrapper installConnectionManager(String repositoryName, NuxeoConnectionManagerConfiguration config)
repositoryName
- the repository nameconfig
- the pool configurationpublic static boolean isInstalled()
public static NuxeoContainer.InstallContext getInstallContext()
public static void uninstall() throws NamingException
NamingException
public static void installNaming() throws NamingException
NamingException
public static void uninstallNaming()
public static void addListener(NuxeoContainerListener listener)
public static void removeListener(NuxeoContainerListener listener)
public static Context getRootContext()
rootContext
.https://jira.nuxeo.com/browse/NXP-10331
public static void addDeepBinding(String name, Object obj) throws NamingException
NamingException
public static TransactionManager getTransactionManager()
public static UserTransaction getUserTransaction() throws NamingException
NamingException
public static ConnectionManager getConnectionManager(String repositoryName)
public static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config) throws NamingException
NamingException
public static NuxeoContainer.ConnectionManagerWrapper initConnectionManager(String repositoryName, NuxeoConnectionManagerConfiguration config)
Copyright © 2013 Nuxeo SA. All Rights Reserved.