org.ektorp.support
Annotation Type ShowFunction


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

Annotation for defining show functions embedded in repositories.

Author:
henrik lundgren

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

Element Detail

name

public abstract String name
The name of the show function.

Returns:

function

public abstract String function
Inline show function.

Returns:
Default:
""

file

public abstract String file
Show 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_show_func.json is in the same directory as the repository this parameter should be set to "my_show_func.js".

Returns:
Default:
""


Copyright © 2011. All Rights Reserved.