@Target(value={METHOD,FIELD,PARAMETER}) @Retention(value=RUNTIME) @InjectAnnotation public @interface ResourcePath
Modifier and Type | Optional Element and Description |
---|---|
InjectionStrategy |
injectionStrategy
|
java.lang.String |
name
Specifies the name of the property containing the resource path.
|
boolean |
optional
Deprecated.
Use
injectionStrategy() instead. |
java.lang.String |
path
Specifies the path of the resource.
|
java.lang.String[] |
paths
Specifies more than one path for the resource.
|
public abstract java.lang.String path
public abstract java.lang.String[] paths
public abstract java.lang.String name
@Deprecated public abstract boolean optional
injectionStrategy()
instead.public abstract InjectionStrategy injectionStrategy
Optional
, Required
) are used.
If even those are not available the default injection strategy defined on the Model
applies.
Default value = DEFAULT.Copyright © 2022 The Apache Software Foundation. All rights reserved.