openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r562584 - /openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ProductDerivations.java
Date Fri, 03 Aug 2007 21:17:25 GMT
Author: ppoddar
Date: Fri Aug  3 14:17:24 2007
New Revision: 562584

URL: http://svn.apache.org/viewvc?view=rev&rev=562584
Log:
Fatal Bootstarp exception raised by any ProductDerivation will abandon bootstrapping process

Modified:
    openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ProductDerivations.java

Modified: openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ProductDerivations.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ProductDerivations.java?view=diff&rev=562584&r1=562583&r2=562584
==============================================================================
--- openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ProductDerivations.java
(original)
+++ openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ProductDerivations.java
Fri Aug  3 14:17:24 2007
@@ -164,7 +164,8 @@
 
     /**
      * Apply {@link ProductDerivation#beforeConfigurationConstruct} callbacks
-     * to the the given instance. Exceptions are swallowed.
+     * to the the given instance. Exceptions other than fatal
+     * {@link BootstrapException} are swallowed.
      */
     public static void beforeConfigurationConstruct(ConfigurationProvider cp) {
         for (int i = 0; i < _derivations.length; i++) {
@@ -182,7 +183,8 @@
 
     /**
      * Apply {@link ProductDerivation#beforeConfigurationLoad} callbacks
-     * to the the given instance. Exceptions are swallowed.
+     * to the the given instance. Exceptions other than fatal
+     * {@link BootstrapException} are swallowed.
      */
     public static void beforeConfigurationLoad(Configuration conf) {
         for (int i = 0; i < _derivations.length; i++) {
@@ -200,12 +202,16 @@
 
     /**
      * Apply {@link ProductDerivation#afterSpecificationSet} callbacks
-     * to the the given instance. Exceptions are swallowed.
+     * to the the given instance. Exceptions other than fatal
+     * {@link BootstrapException} are swallowed.
      */
     public static void afterSpecificationSet(Configuration conf) {
         for (int i = 0; i < _derivations.length; i++) {
             try {
                 _derivations[i].afterSpecificationSet(conf);
+            } catch (BootstrapException be) {
+            	if (be.isFatal())
+            		throw be;
             } catch (Exception e) {
                 // logging not configured yet
                 e.printStackTrace();



Mime
View raw message