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 ElementsModifier and TypeRequired ElementDescriptionClass<? extends PersistentDomainObject> Determines the serviced PDO class.
The PDO class usually is an interface extending the persistent and the domain interfaces. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanFlag to disable the entry inMETA-INF/bundles.
Set it if the provider has no resource bundle, to avoid warnings in the I18N maven goals.booleanReturns whether the provider should be unit tested.
Used by the genericGuiProviderTestof thetentackle-test-fx-rdcmodule.
-
Element Details
-
value
Class<? extends PersistentDomainObject> valueDetermines the serviced PDO class.
The PDO class usually is an interface extending the persistent and the domain interfaces.- Returns:
- the PDO class
-
noBundle
boolean noBundleFlag to disable the entry inMETA-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 testReturns whether the provider should be unit tested.
Used by the genericGuiProviderTestof thetentackle-test-fx-rdcmodule.- Returns:
- true if test (default), false if no test
- Default:
true
-