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.ConnectionManagerConfiguration |
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 |
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 ConnectionManager |
getConnectionManager()
Gets the Nuxeo connection manager used by the container.
|
static NuxeoContainer.InstallContext |
getInstallContext() |
static TransactionManager |
getTransactionManager()
Gets the transaction manager used by the container.
|
static UserTransaction |
getUserTransaction()
Gets the user transaction used by the container.
|
static void |
initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration 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,
NuxeoContainer.ConnectionManagerConfiguration cmconfig)
Install transaction and connection management "by hand" if the container
didn't do it using file-based configuration.
|
static void |
installNaming()
setup root naming context and install initial naming context factory
|
static boolean |
isInstalled() |
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
public static void install() throws NamingException
NamingException
public static void install(NuxeoContainer.TransactionManagerConfiguration txconfig, NuxeoContainer.ConnectionManagerConfiguration cmconfig) throws NamingException
txconfig
- the transaction manager configurationcmconfig
- the connection manager configurationNamingException
public 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 addDeepBinding(String name, Object obj) throws InvalidNameException, NamingException
InvalidNameException
NamingException
public static TransactionManager getTransactionManager()
public static UserTransaction getUserTransaction() throws NamingException
NamingException
public static ConnectionManager getConnectionManager()
public static void initTransactionManager(NuxeoContainer.TransactionManagerConfiguration config) throws NamingException
NamingException
public static void initConnectionManager(NuxeoContainer.ConnectionManagerConfiguration config) throws NamingException
NamingException
Copyright © 2012 Nuxeo SA. All Rights Reserved.