tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1239615 - /openejb/branches/generated-descriptors/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
Date Thu, 02 Feb 2012 13:43:14 GMT
Author: rmannibucau
Date: Thu Feb  2 13:43:13 2012
New Revision: 1239615

URL: http://svn.apache.org/viewvc?rev=1239615&view=rev
Log:
ability to set offline mode from a system property

Modified:
    openejb/branches/generated-descriptors/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java

Modified: openejb/branches/generated-descriptors/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
URL: http://svn.apache.org/viewvc/openejb/branches/generated-descriptors/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java?rev=1239615&r1=1239614&r2=1239615&view=diff
==============================================================================
--- openejb/branches/generated-descriptors/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
(original)
+++ openejb/branches/generated-descriptors/container/openejb-core/src/main/java/org/apache/openejb/config/ConfigurationFactory.java
Thu Feb  2 13:43:13 2012
@@ -115,9 +115,10 @@ public class ConfigurationFactory implem
     private final boolean offline;
     private static final String CLASSPATH_AS_EAR = "openejb.deployments.classpath.ear";
     static final String WEBSERVICES_ENABLED = "openejb.webservices.enabled";
+    static final String OFFLINE_PROPERTY = "openejb.offline";
 
     public ConfigurationFactory() {
-        this(false);
+        this(Boolean.getBoolean(ConfigurationFactory.OFFLINE_PROPERTY));
     }
 
     public ConfigurationFactory(final boolean offline) {



Mime
View raw message