@Target(value=FIELD) @Retention(value=SOURCE) @Documented public @interface StaticResource
Stringconstant whose value denotes a resource path. For example, the resource might be an icon path intended for
ImageUtilities.loadImage. The primary purpose of the annotation is for its processor, which will signal a compile-time error if the resource does not in fact exist - ensuring that at least this usage will not be accidentally broken by moving, renaming, or deleting the resource.
|Modifier and Type||Optional Element and Description|
If true, consider the resource path to be relative to the current package.
If true, permit the resource to be in the classpath.
public abstract boolean searchClasspath
Built on May 31 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.