Results 1 to 3 of 3

Thread: SpEL and custom functions

  1. #1
    Join Date
    Aug 2004
    Posts
    1,097

    Default SpEL and custom functions

    I think I know the answer to this, but I need to ask anyway...

    It seems that in order to register a custom function in SpEL that I must have access to the evaluation context. And from what I can tell, the only way I can get access to the evaluation context is when I'm working with SpEL programmatically.

    I've scoured the source code for Spring 3.0.0.RC1 and from what I can tell, there's no way (no obvious way) that I can register a custom function in SpEL when using it for wiring bean property values. Programmatic SpEL, no problem. But using SpEL with bean wiring I can't use custom functions.

    Am I right? Or am I missing something?

    Also, while I'm asking about SpEL...When using SpEL for wiring bean properties I get access to any bean in the Spring context as well as systemEnvironment and systemProperties (because they end up as beans in the Spring context). I also get request and session assuming that I'm using it with properly scoped beans in a web application. Aside from systemEnvironment, systemProperties, request, session, and #this, are there any other "built-in" things that I get access to?

    Just want to make sure I'm not overlooking something.

  2. #2
    Join Date
    Mar 2009
    Posts
    16

    Default

    habuma, have you worked this out yet? I have the same problem.

  3. #3
    Join Date
    Oct 2011
    Posts
    15

    Default

    Would you please let me know where I can find documentation on systemEnvironment? I can't find any reference to this in Spring Framework Reference. I would also like to know the list of properties that may be access through systemProperties.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •