MVEL has this functionality and is far better than SpringEL. see:<br><a href="http://www.theserverside.com/feature/Adding-MVEL-to-the-Java-Developers-Toolkit" target="_blank">http://www.theserverside.com/feature/Adding-MVEL-to-the-Java-Developers-Toolkit</a><br>

<br>Being able to inject a root context object would make no sense, and 
actually we already do this as the object being evaluated is the root 
context object. We already inject all globals and static methods 
(functions) so you can use that to make variables and functions 
available. <div class="yj6qo ajU"><div id=":n0" class="ajR" tabindex="0"><img class="ajT" src="images/cleardot.gif"></div></div><br>Mark<br><br><div class="gmail_quote">On Tue, Nov 15, 2011 at 3:25 PM, kapokfly <span dir="ltr">&lt;<a href="mailto:ivan.jiang.ww@foxmail.com">ivan.jiang.ww@foxmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is what is documented<br>
/&quot;<br>
Any bean property can be used directly. A bean property is exposed using a<br>
standard Java bean getter: a method getMyProperty() (or isMyProperty() for a<br>
primitive boolean) which takes no arguments and return something. For<br>
example: the age property is written as age in DRL instead of the getter<br>
getAge():<br>
<br>
Person( age == 50 )<br>
<br>
// this is the same as:<br>
Person( getAge() == 50 )<br>
Drools uses the standard JDK Introspector class to do this mapping, so it<br>
follows the standard Java bean specification.<br>
&quot;/<br>
<br>
Apparently this is from Spring:<br>
&quot;The StandardEvaluationContext is where you may specify the root object to<br>
evaluate against via the method setRootObject() or passing the root object<br>
into the constructor. You can also specify variables and functions that will<br>
be used in the expression using the methods setVariable() and<br>
registerFunction(). The use of variables and functions are described in the<br>
language reference sections Variables and Functions. The<br>
StandardEvaluationContext is also where you can register custom<br>
ConstructorResolvers, MethodResolvers, and PropertyAccessors to extend how<br>
SpEL evaluates expressions. Please refer to the JavaDoc of these classes for<br>
more details.<br>
&quot;<br>
<br>
Can drools do the same to allow custom resolver, which would be quite useful<br>
in our use cases.<br>
<br>
Ivan<br>
<br>
<br>
-----<br>
Ivan, your Panda, forever<br>
<span class="HOEnZb"><font color="#888888">--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Property-access-on-Java-Beans-POJO-s-tp3509973p3509973.html" target="_blank">http://drools.46999.n3.nabble.com/Property-access-on-Java-Beans-POJO-s-tp3509973p3509973.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br>