geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r224653 - /geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
Date Sun, 24 Jul 2005 20:44:27 GMT
Author: ammulder
Date: Sun Jul 24 13:44:25 2005
New Revision: 224653

URL: http://svn.apache.org/viewcvs?rev=224653&view=rev
Log:
Same message regardless of whether by name or by index

Modified:
    geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java

Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java?rev=224653&r1=224652&r2=224653&view=diff
==============================================================================
--- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
(original)
+++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/gbean/runtime/GBeanInstance.java
Sun Jul 24 13:44:25 2005
@@ -597,7 +597,11 @@
         if (state != DESTROYED || attribute.isFramework()) {
             return attribute.getValue(instance);
         } else {
-            return attribute.getPersistentValue();
+            if(attribute.isPersistent()) {
+                return attribute.getPersistentValue();
+            } else {
+                throw new IllegalStateException("Cannot retrieve the value for non-persistent
attribute "+attribute.getName()+" when GBeanInstance is DESTROYED");
+            }
         }
     }
 



Mime
View raw message