Registered (Java SE 26 & JDK 26)
Description: declaration: module: jdk.jfr, package: jdk.jfr, annotation type: Registered
Keywords: jdk.jfr.Registered class

# Annotation Interface Registered

@Target(TYPE) @Inherited @Retention(RUNTIME) public @interface Registered
Event annotation, for programmatic event registration.

Events are automatically registered when they are first used. This annotation can be used to override that registration. To register events programmatically, use `FlightRecorder.register(Class)`.

Since:
  9

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `boolean`
  `value`
  Returns `true` if the event is to be registered when the event class is first used, `false` otherwise.

- ## Element Details

  - ### value

    boolean value
    Returns `true` if the event is to be registered when the event class is first used, `false` otherwise.
    Returns:
      `true` if the event is to be registered when the event class is first used, `false` otherwise.
    Default:
      `true`