de.jdemo.annotation
Annotation Type Demo


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Demo


Optional Element Summary
 java.lang.String[] categories
          Optional markers for the categories, this demo belongs to.
 java.lang.String description
          An optional description for the demo, that might be displayed in a demo runner application.
 long timeout
          Optionally specify timeout in milliseconds to cause a demo method to fail if it takes longer than that number of milliseconds.
 

timeout

public abstract long timeout
Optionally specify timeout in milliseconds to cause a demo method to fail if it takes longer than that number of milliseconds.

Default:
60000L

description

public abstract java.lang.String description
An optional description for the demo, that might be displayed in a demo runner application. The format is HTML, as supported by the JTextPane Swing component.

Default:
""

categories

public abstract java.lang.String[] categories
Optional markers for the categories, this demo belongs to. The markers can be used by demo runners in order to filter all available demos to certain categories.

There are no marker names defined by the framework.

Example: { "test", "screenshot" } might indicate, that the demo is being used for testing and for automatically generating screenshots.

Default:
{}


JDemo homepage: http://www.jdemo.de
Copyright © 2003-2008 Markus Gebhard. All Rights Reserved.