ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r158812 - incubator/muse/trunk/src/site/content/interop/src/.xmlbeans/src/schema/system/sE90E70ED05A3991EAA523D38B3174C5A/TypeSystemHolder.java
Date Wed, 23 Mar 2005 17:53:58 GMT
Author: scamp
Date: Wed Mar 23 09:53:56 2005
New Revision: 158812

URL: http://svn.apache.org/viewcvs?view=rev&rev=158812
Log: (empty)


Added:
    incubator/muse/trunk/src/site/content/interop/src/.xmlbeans/src/schema/system/sE90E70ED05A3991EAA523D38B3174C5A/TypeSystemHolder.java

Added: incubator/muse/trunk/src/site/content/interop/src/.xmlbeans/src/schema/system/sE90E70ED05A3991EAA523D38B3174C5A/TypeSystemHolder.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/.xmlbeans/src/schema/system/sE90E70ED05A3991EAA523D38B3174C5A/TypeSystemHolder.java?view=auto&rev=158812
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/.xmlbeans/src/schema/system/sE90E70ED05A3991EAA523D38B3174C5A/TypeSystemHolder.java
(added)
+++ incubator/muse/trunk/src/site/content/interop/src/.xmlbeans/src/schema/system/sE90E70ED05A3991EAA523D38B3174C5A/TypeSystemHolder.java
Wed Mar 23 09:53:56 2005
@@ -0,0 +1,14 @@
+package schema.system.sE90E70ED05A3991EAA523D38B3174C5A;
+
+public final class TypeSystemHolder
+{
+    private TypeSystemHolder() { }
+    public static final org.apache.xmlbeans.SchemaTypeSystem typeSystem = loadTypeSystem();
+    static { typeSystem.resolve(); }
+    private static final org.apache.xmlbeans.SchemaTypeSystem loadTypeSystem()
+    {
+        try { return (org.apache.xmlbeans.SchemaTypeSystem)Class.forName("org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl",
true, TypeSystemHolder.class.getClassLoader()).getConstructor(new Class[] { Class.class }).newInstance(new
java.lang.Object[] { TypeSystemHolder.class }); }
+        catch (ClassNotFoundException e) { throw new RuntimeException("Cannot load org.apache.xmlbeans.impl.SchemaTypeSystemImpl:
make sure xbean.jar is on the classpath.", e); }
+        catch (Exception e) { throw new RuntimeException("Could not instantiate SchemaTypeSystemImpl
(" + e.toString() + "): is the version of xbean.jar correct?", e); }
+    }
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


Mime
View raw message