LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
BackTrack 3.0 / 4.0
Pre-Final

5,487
Ubuntu 9.10
4,487
VLC 1.0.3
3,388
Wine 1.0.1 / 1.1.32
2,824
Yahoo Messenger
1.0.4

2,483
Adobe Flash Player
for Linux 10.0.32.18

2,320
Thunderbird PST
Import plugin 1.2

2,290
Mandriva Linux
2010.0

1,992
Super Grub Disk
0.9799

1,577
Yellow Dog Linux 6.2
1,441

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.3
  • Wine 1.0.1 / 1.1.32
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3....
  • Fedora 11
  • OpenOffice.org 3.1.1
  • Firestarter 1.0.3
  • The Gimp 2.6.7 / 2...
  • FileZilla 3.2.8.1 ...
  • Transmission 1.76
  • Super Grub Disk 0....
  • Gufw 9.04.2
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11....
  • Opera 10.01 / 10.1...
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Programming / Libraries

    Java Unified Expression Language 2.1.2 / 2.2.0 RC2

    Download button

    No screenshots available
    Downloads: 2,103  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.2/5)
    17 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Christoph Beck | More programs
    The Apache License 2.0 / FREE
    October 15th, 2009, 03:11 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    Java Unified Expression Language description

     

    An implementation of the unified expression language.

    Java Unified Expression Language is an implementation of the unified expression language (EL) as specified by the JSP 2.1 standard (JSR-245).

    The javax.el.ExpressionFactory implementation is de.odysseus.el.ExpressionFactoryImpl:

    // create an expression factory
    javax.el.ExpressionFactory factory = new de.odysseus.el.ExpressionFactoryImpl();
    Package de.odysseus.el.util provides ready-to-use subclasses of javax.el.ELContext and javax.el.ELResolver:

    // create a simple EL context
    de.odysseus.el.util.SimpleContext context =
    new de.odysseus.el.util.SimpleContext(new de.odysseus.el.util.SimpleResolver());

    // define function math:max(int,int)
    context.setFunction("math", "max", Math.class.getMethod("max", new Class[]{int.class, int.class}));

    // define variable "foo"
    context.setVariable("foo", factory.createValueExpression(0, null));

    // create expression
    javax.el.ValueExpression e = factory.createValueExpression(context, "${math:max(foo,bar)}", null);

    // set value for top-level property "bar"
    context.setValue(null, "bar", 1);

    // evaluate expression...
    System.out.println(e.getValue(context)); // --> 1

    The JUEL jar may be run from the command line to dump the parse tree of an EL expression:

    $ java -jar juel-2.1.x.jar "#{unified(expression[language])}"
    +- #{...}
    |
    +- unified(...)
    |
    +- [...]
    |
    +- expression
    |
    +- language

    What's New in This Release: [ read full changelog ]

    · This version implements changes for JEE 6 (refer to JSR 245, maintenance release 2), including an API for method invocations.
    · The new API replaces JUEL's proprietary API for method invocations used in past 2.1.x releases.
    · The BeanELResolver class now provides a generic default for method invocations using reflection.
    · Method invocations are disabled and enabled via the javax.el.methodInvocations property.

      


    TAGS:

    Expression Language | Java library | Unified language | Java | Unified | Expression



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM