[webbeans-commits] Webbeans SVN: r2346 - ri/trunk/impl/src/main/java/org/jboss/webbeans/context.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Wed Apr 8 09:23:42 EDT 2009


Author: pete.muir at jboss.org
Date: 2009-04-08 09:23:42 -0400 (Wed, 08 Apr 2009)
New Revision: 2346

Modified:
   ri/trunk/impl/src/main/java/org/jboss/webbeans/context/AbstractMapContext.java
Log:
minor

Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/context/AbstractMapContext.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/context/AbstractMapContext.java	2009-04-08 13:22:02 UTC (rev 2345)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/context/AbstractMapContext.java	2009-04-08 13:23:42 UTC (rev 2346)
@@ -74,7 +74,7 @@
       }
       if (getBeanStore() == null)
       {
-         throw new IllegalStateException("No bean store available");
+         throw new IllegalStateException("No bean store available for " + toString());
       }
       T instance = getBeanStore().get(contextual);
       if (instance != null)
@@ -132,7 +132,7 @@
       log.trace("Destroying " + bean);
       if (getBeanStore() == null)
       {
-         throw new IllegalStateException("No bean store available");
+         throw new IllegalStateException("No bean store available for " + toString());
       }
       bean.destroy(getBeanStore().get(bean));
    }
@@ -145,7 +145,7 @@
       log.trace("Destroying context");
       if (getBeanStore() == null)
       {
-         throw new IllegalStateException("No bean store available");
+         throw new IllegalStateException("No bean store available for " + toString());
       }
       for (Contextual<? extends Object> bean : getBeanStore().getBeans())
       {




More information about the weld-commits mailing list