Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## 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.

Required Element Summary
`String` | `value`

Optional Element Summary
`boolean` | `required`

Element Detail

### value

    public abstract String value

### required

    public abstract boolean required

  Default:
    true

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.