[jboss-cvs] JBossAS SVN: r89381 - projects/jboss-osgi/projects/bundles/jbossxb/trunk/src/main/java/org/jboss/osgi/jbossxb/internal.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 25 12:00:18 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-05-25 12:00:18 -0400 (Mon, 25 May 2009)
New Revision: 89381
Modified:
projects/jboss-osgi/projects/bundles/jbossxb/trunk/src/main/java/org/jboss/osgi/jbossxb/internal/Activator.java
Log:
Add javadoc
Modified: projects/jboss-osgi/projects/bundles/jbossxb/trunk/src/main/java/org/jboss/osgi/jbossxb/internal/Activator.java
===================================================================
--- projects/jboss-osgi/projects/bundles/jbossxb/trunk/src/main/java/org/jboss/osgi/jbossxb/internal/Activator.java 2009-05-25 15:50:18 UTC (rev 89380)
+++ projects/jboss-osgi/projects/bundles/jbossxb/trunk/src/main/java/org/jboss/osgi/jbossxb/internal/Activator.java 2009-05-25 16:00:18 UTC (rev 89381)
@@ -29,7 +29,7 @@
import org.osgi.service.log.LogService;
/**
- * [TODO]
+ * A {@link BundleActivator} that initializes the JBossXB bundle
*
* @author thomas.diesler at jboss.com
* @since 13-May-2009
@@ -41,38 +41,6 @@
public void start(BundleContext context) throws Exception
{
log = new LogServiceTracker(context);
- //String parserConfig = System.getProperty(XMLParserConfiguration.class.getName());
- //if (parserConfig == null)
- // System.setProperty(XMLParserConfiguration.class.getName(), XIncludeAwareParserConfiguration.class.getName());
-
- ClassLoader ctxLoader = Thread.currentThread().getContextClassLoader();
- try
- {
- ClassLoader bundleCL = getClass().getClassLoader();
- Thread.currentThread().setContextClassLoader(bundleCL);
-
-// log.log(LogService.LOG_DEBUG, "Initializing jbossxb with: " + bundleCL);
-
-// https://jira.jboss.org/jira/browse/JBXB-201
-// Cannot parse schema/jbxb_1_0.xsd
-
-// Class<?> xsImpl = bundleCL.loadClass(DOMXSImplementationSourceImpl.class.getName());
-// if (xsImpl == null)
-// throw new IllegalStateException("Cannot load: " + DOMXSImplementationSourceImpl.class.getName());
-
-// String jbxbSchema = "schema/jbxb_1_0.xsd";
-// URL jbxbXSD = context.getBundle().getResource(jbxbSchema);
-// if (jbxbXSD == null)
-// throw new IllegalStateException("Cannot find: " + jbxbSchema);
-//
-// XSModel xsModel = Util.loadSchema(jbxbXSD.toExternalForm(), (SchemaBindingResolver)null);
-// if (xsModel == null)
-// throw new IllegalStateException("Cannot load schema: " + jbxbSchema);
- }
- finally
- {
- Thread.currentThread().setContextClassLoader(ctxLoader);
- }
}
public void stop(BundleContext context) throws Exception
More information about the jboss-cvs-commits
mailing list