geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r232968 - /geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/work/GeronimoWorkManager.java
Date Tue, 16 Aug 2005 09:21:22 GMT
Author: jstrachan
Date: Tue Aug 16 02:21:18 2005
New Revision: 232968

URL: http://svn.apache.org/viewcvs?rev=232968&view=rev
Log:
provided property access to the transactionContextManager to make it easier to conifgure the
GeronimoWorkManager from inside Spring type of environments without requiring constructor
injection

Modified:
    geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/work/GeronimoWorkManager.java

Modified: geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/work/GeronimoWorkManager.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/work/GeronimoWorkManager.java?rev=232968&r1=232967&r2=232968&view=diff
==============================================================================
--- geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/work/GeronimoWorkManager.java
(original)
+++ geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/work/GeronimoWorkManager.java
Tue Aug 16 02:21:18 2005
@@ -68,7 +68,7 @@
      */
     private WorkExecutorPool scheduledWorkExecutorPool;
 
-    private final TransactionContextManager transactionContextManager;
+    private TransactionContextManager transactionContextManager;
 
     private final WorkExecutor scheduleWorkExecutor = new ScheduleWorkExecutor();
     private final WorkExecutor startWorkExecutor = new StartWorkExecutor();
@@ -152,9 +152,17 @@
         scheduledWorkExecutorPool.setMaximumPoolSize(maxSize);
     }
 
+    public TransactionContextManager getTransactionContextManager() {
+        return transactionContextManager;
+    }
+
+    public void setTransactionContextManager(TransactionContextManager transactionContextManager)
{
+        this.transactionContextManager = transactionContextManager;
+    }
+
     /* (non-Javadoc)
-     * @see javax.resource.spi.work.WorkManager#doWork(javax.resource.spi.work.Work)
-     */
+    * @see javax.resource.spi.work.WorkManager#doWork(javax.resource.spi.work.Work)
+    */
     public void doWork(Work work) throws WorkException {
         executeWork(new WorkerContext(work, transactionContextManager), syncWorkExecutor,
syncWorkExecutorPool);
     }



Mime
View raw message