r9436 - in helma/helma/trunk/src/helma: doc framework/core scripting scripting/rhino

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <[email protected]>
Author: hannes
Date: 2008-12-15 23:52:18 +0100 (Mon, 15 Dec 2008)
New Revision: 9436

Removed:
   helma/helma/trunk/src/helma/doc/DocApplication.java
   helma/helma/trunk/src/helma/doc/DocComparator.java
   helma/helma/trunk/src/helma/doc/DocElement.java
   helma/helma/trunk/src/helma/doc/DocException.java
   helma/helma/trunk/src/helma/doc/DocFunction.java
   helma/helma/trunk/src/helma/doc/DocProperties.java
   helma/helma/trunk/src/helma/doc/DocPrototype.java
   helma/helma/trunk/src/helma/doc/DocRepositoryElement.java
   helma/helma/trunk/src/helma/doc/DocResourceElement.java
   helma/helma/trunk/src/helma/doc/DocSkin.java
   helma/helma/trunk/src/helma/doc/DocTag.java
   helma/helma/trunk/src/helma/doc/Util.java
Modified:
   helma/helma/trunk/src/helma/framework/core/Application.java
   helma/helma/trunk/src/helma/scripting/ScriptingEngine.java
   helma/helma/trunk/src/helma/scripting/rhino/RhinoEngine.java
Log:
Remove helma.doc package and DocApplication functionality.

Details at http://dev.helma.org/trac/helma/changeset/9436

Deleted: helma/helma/trunk/src/helma/doc/DocApplication.java

Deleted: helma/helma/trunk/src/helma/doc/DocComparator.java

Deleted: helma/helma/trunk/src/helma/doc/DocElement.java

Deleted: helma/helma/trunk/src/helma/doc/DocException.java

Deleted: helma/helma/trunk/src/helma/doc/DocFunction.java

Deleted: helma/helma/trunk/src/helma/doc/DocProperties.java

Deleted: helma/helma/trunk/src/helma/doc/DocPrototype.java

Deleted: helma/helma/trunk/src/helma/doc/DocRepositoryElement.java

Deleted: helma/helma/trunk/src/helma/doc/DocResourceElement.java

Deleted: helma/helma/trunk/src/helma/doc/DocSkin.java

Deleted: helma/helma/trunk/src/helma/doc/DocTag.java

Deleted: helma/helma/trunk/src/helma/doc/Util.java

Modified: helma/helma/trunk/src/helma/framework/core/Application.java
===================================================================
--- helma/helma/trunk/src/helma/framework/core/Application.java	2008-12-15 22:46:29 UTC (rev 9435)
+++ helma/helma/trunk/src/helma/framework/core/Application.java	2008-12-15 22:52:18 UTC (rev 9436)
@@ -24,7 +24,6 @@
 import helma.objectmodel.*;
 import helma.objectmodel.db.*;
 import helma.util.*;
-import helma.doc.DocApplication;
 
 import java.io.*;
 import java.lang.reflect.*;
@@ -1416,19 +1415,6 @@
         return null;
     }
 
-    public DocApplication getDoc() {
-        RequestEvaluator eval = null;
-        try {
-            eval = getEvaluator();
-            return eval.scriptingEngine.getDoc();
-        } catch (Exception xcept) {
-            logError("Error in getDoc() for " + name, xcept);
-            return null;
-        } finally {
-            releaseEvaluator(eval);
-        }
-    }
-
     ////////////////////////////////////////////////////////////////////////
 
     /**

Modified: helma/helma/trunk/src/helma/scripting/ScriptingEngine.java
===================================================================
--- helma/helma/trunk/src/helma/scripting/ScriptingEngine.java	2008-12-15 22:46:29 UTC (rev 9435)
+++ helma/helma/trunk/src/helma/scripting/ScriptingEngine.java	2008-12-15 22:52:18 UTC (rev 9436)
@@ -19,7 +19,6 @@
 import helma.framework.repository.Resource;
 import helma.framework.core.Application;
 import helma.framework.core.RequestEvaluator;
-import helma.doc.DocApplication;
 
 import java.io.OutputStream;
 import java.io.IOException;
@@ -157,14 +156,6 @@
     public String toString(Object obj);
 
     /**
-     *  Get an IPathElement that offers introspection services into the application.
-     *  If this method returns null, no introspection is available for this kind of engine.
-     *  In order to be compatible with the standard Helma management application, this
-     *  class should be compatible with helma.doc.DocApplication.
-     */
-    public DocApplication getDoc();
-
-    /**
      * Provide object serialization for this engine's scripted objects. If no special
      * provisions are required, this method should just wrap the stream with an
      * ObjectOutputStream and write the object.

Modified: helma/helma/trunk/src/helma/scripting/rhino/RhinoEngine.java
===================================================================
--- helma/helma/trunk/src/helma/scripting/rhino/RhinoEngine.java	2008-12-15 22:46:29 UTC (rev 9435)
+++ helma/helma/trunk/src/helma/scripting/rhino/RhinoEngine.java	2008-12-15 22:52:18 UTC (rev 9436)
@@ -16,7 +16,6 @@
 
 package helma.scripting.rhino;
 
-import helma.doc.DocApplication;
 import helma.extensions.ConfigurationException;
 import helma.extensions.HelmaExtension;
 import helma.framework.*;
@@ -69,9 +68,6 @@
     // thread local engine registry
     static ThreadLocal engines = new ThreadLocal();
 
-    // the introspector that provides documentation for this application
-    DocApplication doc = null;
-
     /**
      *  Zero argument constructor.
      */
@@ -505,21 +501,6 @@
     }
 
     /**
-     * Get an introspector to this engine.
-     */
-    public DocApplication getDoc() {
-        if (doc == null) {
-            try {
-                doc = new DocApplication(app);
-                doc.readApplication();
-            } catch (IOException x) {
-                throw new RuntimeException(x.toString(), x);
-            }
-        }
-        return doc;
-    }
-
-    /**
      * Provide object serialization for this engine's scripted objects. If no special
      * provisions are required, this method should just wrap the stream with an
      * ObjectOutputStream and write the object.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.