Wednesday, March 7, 2012

Extending the Groovy support in ADF BC

If you have worked with ADF Business Components in ADF 11g, chances are you have used the very powerful Groovy support. Perhaps you used it to create an entity validation rule, as a default value for a (transient) attribute or to calculate the value of a bind variable, etc. As part of this Groovy Support you get a number of aggregate functions that are not available in "normal Java-code". See this whitepaper or the chapter on Groovy support in the ADF developers guide. This post describes how to expose (comparable, but slightly more powerful) aggregate functions to Java code.