Class WorkManagerFactoryImpl
- java.lang.Object
-
- com.sun.enterprise.connectors.work.WorkManagerFactoryImpl
-
- All Implemented Interfaces:
WorkManagerFactory
@Service @Singleton public final class WorkManagerFactoryImpl extends Object implements WorkManagerFactory
WorkManagerFactoryImpl allows other customized WorkManager implementation to be plugged into the server. The name of the customized implementation class for the WorkManager has to be specified as a system property "workmanager.class". It is assumed that the implementation for WorkManager also provides a public method called "getInstance" that returns a WorkManager object. This frees the WorkManagerFactoryImpl from deciding whether WorkManager is implemented as a Singleton in the server.- Author:
- Qingqing Ouyang, Binod P.G.
-
-
Constructor Summary
Constructors Constructor Description WorkManagerFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.resource.spi.work.WorkManager
createWorkManager(String poolName, String raName, ClassLoader rarCL)
This is called by the constructor of BootstrapContextImpljakarta.resource.spi.work.WorkManager
getWorkManagerProxy(String poolId, String moduleName, ClassLoader rarCL)
provides work manager proxy that is Serializableboolean
removeWorkManager(String moduleName)
remove the actual work manager from registry
-
-
-
Method Detail
-
createWorkManager
public jakarta.resource.spi.work.WorkManager createWorkManager(String poolName, String raName, ClassLoader rarCL)
This is called by the constructor of BootstrapContextImpl- Specified by:
createWorkManager
in interfaceWorkManagerFactory
- Parameters:
poolName
- thread pool nameraName
- resource-adapter-name- Returns:
- WorkManager work manager that can be used by resource-adapter
-
removeWorkManager
public boolean removeWorkManager(String moduleName)
remove the actual work manager from registry- Specified by:
removeWorkManager
in interfaceWorkManagerFactory
- Parameters:
moduleName
- resource-adapter name- Returns:
- boolean
-
getWorkManagerProxy
public jakarta.resource.spi.work.WorkManager getWorkManagerProxy(String poolId, String moduleName, ClassLoader rarCL) throws ConnectorRuntimeException
provides work manager proxy that is Serializable- Specified by:
getWorkManagerProxy
in interfaceWorkManagerFactory
- Parameters:
poolId
- ThreadPoolIdmoduleName
- resource-adapter name- Returns:
- WorkManager
- Throws:
ConnectorRuntimeException
- when unable to get work manager
-
-