geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r232838 - in /geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector: ActivationSpecWrapper.java ResourceAdapterWrapper.java
Date Mon, 15 Aug 2005 17:38:46 GMT
Author: chirino
Date: Mon Aug 15 10:38:44 2005
New Revision: 232838

URL: http://svn.apache.org/viewcvs?rev=232838&view=rev
Log:
Allow the wrapper classes to be constructed with instanciated delegates.

Modified:
    geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ActivationSpecWrapper.java
    geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ResourceAdapterWrapper.java

Modified: geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ActivationSpecWrapper.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ActivationSpecWrapper.java?rev=232838&r1=232837&r2=232838&view=diff
==============================================================================
--- geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ActivationSpecWrapper.java
(original)
+++ geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ActivationSpecWrapper.java
Mon Aug 15 10:38:44 2005
@@ -75,6 +75,15 @@
     }
 
     /**
+     */
+    public ActivationSpecWrapper(ActivationSpec activationSpec, ResourceAdapterWrapper resourceAdapterWrapper)
 {
+        this.activationSpec = activationSpec;
+        this.resourceAdapterWrapper = resourceAdapterWrapper;
+        this.containerId = null;
+        this.delegate=null;
+    }
+
+    /**
      * Returns class of wrapped ActivationSpec.
      *
      * @return class of wrapped ActivationSpec

Modified: geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ResourceAdapterWrapper.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ResourceAdapterWrapper.java?rev=232838&r1=232837&r2=232838&view=diff
==============================================================================
--- geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ResourceAdapterWrapper.java
(original)
+++ geronimo/trunk/modules/connector/src/java/org/apache/geronimo/connector/ResourceAdapterWrapper.java
Mon Aug 15 10:38:44 2005
@@ -67,6 +67,13 @@
         delegate = new DynamicGBeanDelegate();
         delegate.addAll(resourceAdapter);
     }
+    
+    public ResourceAdapterWrapper(ResourceAdapter resourceAdapter, final GeronimoWorkManager
workManager) {
+        this.resourceAdapterClass = resourceAdapter.getClass().getName();
+        this.bootstrapContext = new BootstrapContextImpl(workManager);
+        this.resourceAdapter = resourceAdapter;
+        this.delegate=null;
+    }
 
     public String getResourceAdapterClass() {
         return resourceAdapterClass;



Mime
View raw message