Gumtree
  1. Gumtree
  2. GUMTREE-376

Provide scripting feature for data access manager

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1
    • Component/s: framework, scripting
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In the resource orientated programming style, one can use the URI as a way to script the application. For example, scripting feature in NetKernel (http://docs.1060.org/docs/3.3.0/book/solutiondeveloperguide/doc_guide_Scripting.html).

      In GumTree, we will provide script evaluation via the data access manager, for example:

      // URI -> script://jython/1+1
      dam.get(URI.create("script://jython/1+1"), Integer.class)
      

      Above code will evaluate the script and return the result as a resource to the client.

      Limitation:
      There will be no type conversion for this script data provider, as there are many possibility of the result type.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Tony Lam
            Reporter:
            Tony Lam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: