Adding predicates with static methods
Brought to you by:
jensdietrich
Wouldn't it be a great idea if, in Oryx, you could add
mandarax library style predicates just by defining java
predicates using static methods? This way, it would be
easy to develop a small library of predicates that work
on your own business objects, without having to change
them.
If you now use a static method as a java predicate, an
instance of the class still has to be passed as
argument. Adding a check for static methods, which
removes this instance from the argument list would
solve this.
Jeroen Baekelandt
jbaekelandt@kiala.com
Logged In: YES
user_id=921522
I have implemented the feature by changing
JConstructor.getStructure() and JConstructor.perform(Term[]
parameter).