geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r499090 - /geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbContainer.java
Date Tue, 23 Jan 2007 17:46:54 GMT
Author: djencks
Date: Tue Jan 23 09:46:53 2007
New Revision: 499090

URL: http://svn.apache.org/viewvc?view=rev&rev=499090
Log:
Previous change resulted in null infoType if the gbean framework initialized infoType after
type and correct infoType if it chose the other order.  This change always returns non-null
infoType

Modified:
    geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbContainer.java

Modified: geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbContainer.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbContainer.java?view=diff&rev=499090&r1=499089&r2=499090
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbContainer.java
(original)
+++ geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbContainer.java
Tue Jan 23 09:46:53 2007
@@ -80,7 +80,6 @@
 
     public void setType(String type) {
         this.type = type;
-        this.infoType = getInfoType(type);
     }
 
     private Class<? extends ContainerInfo> getInfoType(String type) {
@@ -94,7 +93,7 @@
     }
 
     public Class<? extends ContainerInfo> getInfoType() {
-        return infoType;
+        return infoType == null? getInfoType(type): infoType;
     }
 
     public void setInfoType(Class<? extends ContainerInfo> infoType) {
@@ -102,7 +101,7 @@
     }
 
     public void doStart() throws Exception {
-        openEjbSystem.createContainer(infoType, id, properties, provider);
+        openEjbSystem.createContainer(getInfoType(), id, properties, provider);
     }
 
     public void doStop() throws Exception {



Mime
View raw message