Package guru.mikelue.jdut.annotation
JdutResource
This annotation defins the String or Class type properties for one to multiple resources.
How to load the resources is defined by implementing controller/container.
The JdutResourceConfig is just a tagging interface to Jdut.Resource.resourcesConfig().
IfDatabaseVendor
If you are developing application with support of various vendor of databases, this annotation let you declare the semantics on method/class., etc.
As same as JdutResource, the implementation of the semantics for DatabaseVendor is defined by implementation.
You may want to check out the AnnotationUtil.matchDatabaseVendor(guru.mikelue.jdut.vendor.DatabaseVendor, guru.mikelue.jdut.annotation.IfDatabaseVendor) for default matching logic.
JdutResourceNaming
There are some supplementary methods provided by this object to generates name of file by certain context(e.g. Class or Method).
- See Also:
- TestNG,
JUnit 4,
JUnit 5,
DatabaseVendor
-
Interface Summary Interface Description JdutResourceConfig As tagging interface to implementation, used withJdutResourceannotation. -
Class Summary Class Description AnnotationUtil Utilities for processing defined annotations.JdutResourceNaming Provides generating of resource name by format string(MessageFormat) and properties of class/method. -
Annotation Types Summary Annotation Type Description IfDatabaseVendor Defines the annotation used to check if the current vendor is matched the environment(implemented by container, framework., etc.).
The default value isDatabaseVendor.Unknown, which means nothing to checked(everything is passed always).JdutResource Only defines the annotation of resources, the detail of usage is defined by controller/container which loads the instance of this annotation.