org.ektorp.support
Annotation Type UpdateHandler


@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface UpdateHandler

Annotation for defining update handler functions embedded in repositories.

Author:
henrik lundgren

Required Element Summary
 String name
          The name of the update handler
 
Optional Element Summary
 String file
          Update handler functions are best stored in a separate files.
 String function
          Inline update handler function.
 

Element Detail

name

public abstract String name
The name of the update handler

Returns:

function

public abstract String function
Inline update handler function.

Returns:
Default:
""

file

public abstract String file
Update handler functions are best stored in a separate files. By specifying the file parameter a function can be loaded from the classpath. The path is relative to the class annotated by this annotation. If the file my_handler.js is in the same directory as the repository this parameter should be set to "my_handler.js".

Returns:
Default:
""


Copyright © 2011. All Rights Reserved.