Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Web Flow: How to call static method from <evaluate />?

I need to call static method of org.hibernate.Hibernate class. How to do that in element of flow ?

like image 417
marioosh Avatar asked Nov 23 '10 10:11

marioosh


1 Answers

You can use the following Spring EL construct to evaluate static methods:

<evaluate expression="T(org.hibernate.Hibernate).initialize(yourObject)"/>

See the appropriate Spring EL reference part:

http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/expressions.html#expressions-types

like image 200
Denis Kniazhev Avatar answered Sep 20 '22 01:09

Denis Kniazhev