com.holonplatform.vaadin.navigator.annotations

## Annotation Type ViewContext

-     @Target(value=FIELD)
       @Retention(value=RUNTIME)
       @Documented
      public @interface ViewContext

  Annotation used to inject a `Context` resource into an annotated `Field`.

  Required Context resource type is derived from Field's type.

  Since:
    5.0.0

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `boolean` | `required` Whether the resource injection is required.
    `String` | `value` Optional context resource key to inject.

- - ### Element Detail

    - #### value

          public abstract String value

      Optional context resource key to inject. If not configured, the resource key will be derived from the target injection property type class name.
      Returns:
        Context resource key
      Default:
        ""

  - - #### required

          public abstract boolean required

      Whether the resource injection is required. If required and a consistent context resource is not available for injection, a configuration exception is thrown.
      Returns:
        `true` if the resource injection is required
      Default:
        true

Copyright © 2017 The Holon Platform. All rights reserved.