ConstructType (JBoss Logging I18n Documentation 2.2.1.Final API)

org.jboss.logging.annotations

## Annotation Type ConstructType

-     @Retention(value=CLASS)
       @Target(value=METHOD)
       @Documented
      public @interface ConstructType

  Indicates the value of this annotation should be constructed and returned. This does not change the return type of the method.

  This annotation is only allowed on bundle messages that have a throwable return type. The value must be assignable to the return type.

  Since:
    2.0.0
  Author:
    James R. Perkins

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `Class<? extends Throwable>` | `value` The actual type that should be constructed for the return type.

- - ### Element Detail

    - #### value

          public abstract Class<? extends Throwable> value

      The actual type that should be constructed for the return type.
      Returns:
        the class to construct

Copyright © 2019 JBoss by Red Hat. All rights reserved.