|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcuba.wired.WiredContainer
public class WiredContainer
A component and resource container for the CUBA wired model
A WiredContainer is usually not created explicitly be a client
but implicitly through a WiredClientContext.
| Field Summary | |
|---|---|
static java.lang.String |
EMPTY_CALLER
|
| Constructor Summary | |
|---|---|
WiredContainer()
Creates a default WiredContainer without particular properties. |
|
WiredContainer(java.util.Properties props)
Creates a default WiredContainer. |
|
WiredContainer(java.lang.String deploymentDescriptor,
java.util.Properties props)
Creates a new WiredContainer using PrimitiveWiredInstanceFactory
as the default lifecycle manager and PrimitiveDataSourceProvider as
the default SQL source manager. |
|
WiredContainer(WiredInstanceFactoryI lifecycleManager,
WiredDataSourceProviderI dataSourceProvider,
ComponentMap componentMap,
ResourceFactoryMap resourceFactoryMap,
java.util.Map users)
Constructor for test purposes |
|
WiredContainer(WiredInstanceFactoryI instanceFactory,
WiredDataSourceProviderI dataSourceProvider,
java.lang.String deploymentDescriptor,
java.util.Properties props)
Creates a new WiredContainer |
|
| Method Summary | |
|---|---|
CubaEntityManager |
allocateEntityManager(ResourceFactoryI factory)
|
javax.sql.DataSource |
getDataSource(java.lang.String globalName)
Get a DataSource by its global lookup name. |
javax.transaction.TransactionManager |
getTransactionManager()
|
void |
shutdown()
Shutdown this container in order to release all its allocated resources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EMPTY_CALLER
| Constructor Detail |
|---|
public WiredContainer(WiredInstanceFactoryI lifecycleManager,
WiredDataSourceProviderI dataSourceProvider,
ComponentMap componentMap,
ResourceFactoryMap resourceFactoryMap,
java.util.Map users)
throws InitException
InitException
public WiredContainer(WiredInstanceFactoryI instanceFactory,
WiredDataSourceProviderI dataSourceProvider,
java.lang.String deploymentDescriptor,
java.util.Properties props)
throws InitException
instanceFactory - The WiredInstanceFactoryI to be used by the
container for control of component instance management. A primitive
implementation of this interface is provided by the class
PrimitiveWiredInstanceFactory.dataSourceProvider - The WiredDataSourceProviderI to be used by the
container for control of SQLSource instances as the only type of resources
supported so far. A primitive implementation of this interface is provided
by the class PrimitiveDataSourceProvider.deploymentDescriptor - Filename of the application's wired descriptor.
If this parameter is null, the descriptor is retrieved from the CLASSPATH
using the predefinied name META-INF/wired-application.xml.
InitException - if the initialization fails
public WiredContainer(java.lang.String deploymentDescriptor,
java.util.Properties props)
throws InitException
PrimitiveWiredInstanceFactory
as the default lifecycle manager and PrimitiveDataSourceProvider as
the default SQL source manager.
deploymentDescriptor - Filename of the application's wired descriptor.
If this parameter is null, the descriptor is retrieved from the CLASSPATH
using the predefinied name META-INF/wired-application.xml.props - Creation configuration properties
InitException - if the initialization failed
public WiredContainer(java.util.Properties props)
throws InitException
props - Creation configuration properties
InitException - if the initialization failed
public WiredContainer()
throws InitException
InitException - if the initialization failed| Method Detail |
|---|
public void shutdown()
public javax.sql.DataSource getDataSource(java.lang.String globalName)
throws ConstructionException,
ReferenceException
globalName - the global lookup name of the requested resource
ReferenceException - if the specified symbolic name is not valid
in the container's global name space
ConstructionException - if the container failed to provide the
requested resource.public javax.transaction.TransactionManager getTransactionManager()
public CubaEntityManager allocateEntityManager(ResourceFactoryI factory)
throws ConstructionException
ConstructionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||