]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.osgi/src/main/java/org/argeo/slc/osgi/OsgiExecutionModulesManager.java
Improve Javadocs
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.osgi / src / main / java / org / argeo / slc / osgi / OsgiExecutionModulesManager.java
index 2a13d0388d54e18928b42b274193f3b46b1cc661..2cfad6683cdc7404daaa076b945ac1c6902b3b44 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.argeo.slc.osgi;
 
 import java.util.ArrayList;
@@ -38,26 +54,26 @@ public class OsgiExecutionModulesManager extends
                AbstractExecutionModulesManager implements InitializingBean,
                DisposableBean, OsgiServiceLifecycleListener {
 
-       static {
-               // Force usage of vanilla Xalan when in OSGi
-               // We would like to do it in a cleaner way
-               // but the integration of Xalan and Xerces in the JRE
-               // makes it very difficult
-               // Suggestions welcome!
-               Properties systemProperties = System.getProperties();
-               // if (!systemProperties
-               // .containsKey("javax.xml.parsers.DocumentBuilderFactory"))
-               // System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
-               // "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
-               // if
-               // (!systemProperties.containsKey("javax.xml.parsers.SAXParserFactory"))
-               // System.setProperty("javax.xml.parsers.SAXParserFactory",
-               // "org.apache.xerces.jaxp.SAXParserFactoryImpl");
-               if (!systemProperties
-                               .containsKey("javax.xml.transform.TransformerFactory"))
-                       System.setProperty("javax.xml.transform.TransformerFactory",
-                                       "org.apache.xalan.processor.TransformerFactoryImpl");
-       }
+//     static {
+//             // Force usage of vanilla Xalan when in OSGi
+//             // We would like to do it in a cleaner way
+//             // but the integration of Xalan and Xerces in the JRE
+//             // makes it very difficult
+//             // Suggestions welcome!
+//             Properties systemProperties = System.getProperties();
+//             // if (!systemProperties
+//             // .containsKey("javax.xml.parsers.DocumentBuilderFactory"))
+//             // System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
+//             // "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
+//             // if
+//             // (!systemProperties.containsKey("javax.xml.parsers.SAXParserFactory"))
+//             // System.setProperty("javax.xml.parsers.SAXParserFactory",
+//             // "org.apache.xerces.jaxp.SAXParserFactoryImpl");
+//             if (!systemProperties
+//                             .containsKey("javax.xml.transform.TransformerFactory"))
+//                     System.setProperty("javax.xml.transform.TransformerFactory",
+//                                     "org.apache.xalan.processor.TransformerFactoryImpl");
+//     }
 
        private final static String PROPERTY_CACHE_SERVICES = "slc.osgi.execution.cacheServices";