com.atlassian.analytics.api.annotations
Annotation Type EventName


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

Provides the event name for an analytics event.

If it is specified on a method, the method will be invoked to determine the name of the event. This provides a way to dynamically calculate the name of the event.

Only methods with zero parameters are supported. If there are more than one, the first one that has this annotation from the array returns by Class.getMethods() will be used.

If it is specified on a class, the value will be taken as the name of the event. This provides a quick way to specific a static name for the event.

Since:
v2.25

Optional Element Summary
 java.lang.String value
          Provides the event name for an analytics event.
 

value

public abstract java.lang.String value
Provides the event name for an analytics event.

Default:
""


Copyright © 2013 Atlassian. All Rights Reserved.