org.mule.config.annotations.expressions
Annotation Type Function
@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface Function
This evaluator allows for predefined functions
to be called and returns a result. The functions it supports are:
- now - Returns a
Timestamp with the current time.
- date - Returns a
Date with the current time.
- dateStamp - Returns a
String that contains the current date formatted according to #DEFAULT_DATE_FORMAT.
- dateStamp(dd-MM-yyyy) - Returns a
String that contains the current date formatted according to the format passed into the function.
- uuid - Returns a globally unique identifier
- hostname - Returns the hostname of the machine Mule is running on
- ip - Returns the IP address of the machine Mule is running on
- count - Returns a local count that will increment for each call. If the server is restarted, the counter will return to zero.
- payloadClass - Returns a fuly qualified class name of the payload as a string.
- shortPayloadClass - Returns just the class name of the payload as a string.
|
Optional Element Summary |
boolean |
required
|
value
public abstract String value
required
public abstract boolean required
- Default:
- true
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.