com.ibm.websphere.batch.ilc
Class ILContainerFactory
- java.lang.Object
com.ibm.websphere.batch.ilc.ILContainerFactory
- public class ILContainerFactory
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
ILContainerFactory()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
clearContainerFromThread()
|
create()
Creates an ILContainer instance.
|
|
create(java.sql.Connection db2Connection)
Creates an ILContainer instance that uses the specified DB2 connection.
|
|
|
getContainerFromThread()
|
|
getFactory()
Returns the factory instance singleton for use in creating ILContainers
objects.
|
|
setContainerOnThread(com.ibm.ws.batch.ilc.impl.ILContainerImpl container)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
ILContainerFactory
- public ILContainerFactory()
Method Detail
setContainerOnThread
- protected static void setContainerOnThread( com.ibm.ws.batch.ilc.impl.ILContainerImpl container)
getContainerFromThread
- protected static com.ibm.ws.batch.ilc.impl.ILContainerImpl getContainerFromThread( )
clearContainerFromThread
- protected static void clearContainerFromThread( )
- throws ILContainerException
Throws:
getFactory
- public static ILContainerFactory getFactory( )
Returns the factory instance singleton for use in creating ILContainers
objects.
Returns:
the factory instance singleton.
create
- public ILContainer create()
- throws ILContainerException
Creates an ILContainer instance. If an instance already exists on
thread, it is returned with promise from ILContainer runtime that
the returned ILContainer belongs to the current execution scope.
An execution scope is a batch job step or a remote component
invocation (e.g. EJB, servlet).
create
- public ILContainer create(java.sql.Connection db2Connection)
- throws ILContainerException
Creates an ILContainer instance that uses the specified DB2 connection.
If an instance already exists on thread, it is returned with promise
from ILContainer runtime that the returned ILContainer belongs to the
current execution scope. An execution scope is a batch job step or
a remote component invocation (e.g. EJB, servlet).