@Target(value={METHOD,TYPE}) @Retention(value=CLASS) @Documented public @interface ResolutionDoc
path()
is defined.
The rules for building the URL are as follows:
url
: If left empty and the type is annotated with a BaseUrl
the value for the
@BaseUrl
will be used. If defined this will override the value of the BaseUrl
. If neither are
defined the rules for the path()
will be followed.path
: If defined this will be the path appended to the url()
or the value of the
BaseUrl
. Note that neither url()
nor BaseUrl
are required. If the value is left
undefined the id (project code plus the message id) will be used for the path.suffix
: The suffix to append to the path()
. This is mostly useful if the path
is left undefined and a suffix should be appended to the messages id. If left undefined and the path()
is not defined, the suffix will be determined based on the report type.If placed on a type links will be created for all methods on the type.
Do note that the processor does not validate the resolution document exists. It simply attempts to create links to the resolution document.
Expressions in the form of ${property.key:default-value}
can be used for the values with the exception of the
skip
attribute. If the property key is prefixed with sys.
a
system property will be used. If the key is prefixed with env.
an
environment variable will be used. In all other cases the
org.jboss.logging.tools.expressionProperties
processor argument is used to specify the path the properties
file which contains the values for the expressions.
Modifier and Type | Optional Element and Description |
---|---|
String |
path
The path to the resolution document.
|
boolean |
skip
Allows the creation of a link to be skipped.
|
String |
suffix
The suffix to append to the path.
|
String |
url
The URL, fully qualified or relative, to use for the resolution document.
|
public abstract String path
public abstract String suffix
xml
the default suffix would be .xml
.Copyright © 2019 JBoss by Red Hat. All rights reserved.