Commons Jelly
  1. Commons Jelly
  2. JELLY-1

break variable storage away from the JellyContext

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.1-beta-1
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      Implement a simpler Scope interface to be used by JellyContext for variable storage and retrieval, to allow for arbitrary integrations for storage.

        Activity

        Jason van Zyl committed 118424 (1 file)
        Reviews: none

        o Trying out the 'latest' feature. When a snapshot JAR is uploaded a
          symbolic link is add pointing to the snapshot just uploaded. So if
          we upload:

          commons-jelly-1.0-dev.20020711.063333.jar

          we will also get

          commons-jelly-latest.jar

          which points to the snapshot.

          This is an experiment after chatting with John McNally. This might possibly
          be better named as commons-jelly-dev.jar and the latest released version
          can be named 'latest'. Dunno. Just seeing if it works.

        bob mcwhirter created issue -
        Hide
        james strachan added a comment -

        Some kinda of simple Scope interface of the form...

        public interface Scope

        { Object getVariable(String name); void setVariable(String name, Object); Scope getParent(); void getParent(Scope scope); }

        Then when running Jelly inside a Servlet we could have a RequestScope, SessionScope a shared ApplicationScope.

        Also we could have things like a SystemPropertiesScope, AntProjectScope etc.

        This should make it easier to adapt the variable scopes of Jelly to other variable scopes.

        Show
        james strachan added a comment - Some kinda of simple Scope interface of the form... public interface Scope { Object getVariable(String name); void setVariable(String name, Object); Scope getParent(); void getParent(Scope scope); } Then when running Jelly inside a Servlet we could have a RequestScope, SessionScope a shared ApplicationScope. Also we could have things like a SystemPropertiesScope, AntProjectScope etc. This should make it easier to adapt the variable scopes of Jelly to other variable scopes.
        Morgan Delagrange made changes -
        Field Original Value New Value
        Component/s core / taglib.core [ 10421 ]
        Environment
        Morgan Delagrange made changes -
        Fix Version/s 1.1-beta-1 [ 10228 ]
        no_author committed 136212 (1 file)
        Reviews: none

        This commit was manufactured by cvs2svn to create tag
        'COMMONS-JELLY-1_0-beta-4'.

        Hide
        Hans Gilde added a comment -

        If we break variable storage into a Scope, then we can use push/pop on the scopes as it executes, just like a regular scripting language. Sounds good.

        Show
        Hans Gilde added a comment - If we break variable storage into a Scope, then we can use push/pop on the scopes as it executes, just like a regular scripting language. Sounds good.
        Hide
        Marc DeXeT added a comment -

        I agree with this feature. With this, we could also isolate script parts by scoping to avoid var name collisions.
        see also <http://www.mail-archive.com/commons-user@jakarta.apache.org/msg08751.html>

        Show
        Marc DeXeT added a comment - I agree with this feature. With this, we could also isolate script parts by scoping to avoid var name collisions. see also < http://www.mail-archive.com/commons-user@jakarta.apache.org/msg08751.html >
        no_author committed 136372 (1 file)
        Reviews: none

        This commit was manufactured by cvs2svn to create tag
        'COMMONS_JELLY-1_0_RC1'.

        Hide
        Marc DeXeT added a comment -

        What about this feature ?
        Needs for plug in scope strategy are here.
        It seems to me this feature is not a minor but rather major one

        Show
        Marc DeXeT added a comment - What about this feature ? Needs for plug in scope strategy are here. It seems to me this feature is not a minor but rather major one
        Brett Lefebvre committed 189550 (1 file)
        Reviews: none

        [maven-scm] copy for tag commons-jelly-1.0-RC2

        Brett Lefebvre committed 190096 (1 file)
        Reviews: none

        [maven-scm] copy for tag commons-jelly-1.0

          People

          • Assignee:
            james strachan
            Reporter:
            bob mcwhirter
          • Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development