Annotation Interface GuiProviderService


@Documented @Retention(RUNTIME) @Target(TYPE) @Analyze("org.tentackle.buildsupport.BundleAnalyzeHandler") @MappedService(GuiProvider.class) public @interface GuiProviderService
Annotation to express that the annotated class is the GuiProvider for a PDO type.

The annotated class must provide a public constructor with the PDO as its only argument. The mapping from the PDO class to the provider class is recorded under META-INF at build time, and the provider's resource bundle under META-INF/bundles.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Determines the serviced PDO class.
    The PDO class usually is an interface extending the persistent and the domain interfaces.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Flag to disable the entry in META-INF/bundles.
    Set it if the provider has no resource bundle, to avoid warnings in the I18N maven goals.
    boolean
    Returns whether the provider should be unit tested.
    Used by the generic GuiProviderTest of the tentackle-test-fx-rdc module.
  • Element Details

    • value

      Class<? extends PersistentDomainObject> value
      Determines the serviced PDO class.
      The PDO class usually is an interface extending the persistent and the domain interfaces.
      Returns:
      the PDO class
    • noBundle

      boolean noBundle
      Flag to disable the entry in META-INF/bundles.
      Set it if the provider has no resource bundle, to avoid warnings in the I18N maven goals.
      Returns:
      true if GuiProvider does not provide a bundle
      Default:
      false
    • test

      boolean test
      Returns whether the provider should be unit tested.
      Used by the generic GuiProviderTest of the tentackle-test-fx-rdc module.
      Returns:
      true if test (default), false if no test
      Default:
      true