@Documented @Target(value={FIELD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface Path
Defines the relative or absolute path of a property or resource mapped to a
field. Can be used when the name of the field does not match the name of
the mapped child resource or property, e.g. in case namespaces like jcr: are used, or
if an absolute or relative path is to be mapped.
Supports placeholders of the form
${name}, which are resolved by PlaceholderVariableResolver services.
public class Model {
@Path("jcr:title")
private String title;
@Path("/content/homepage")
private Page homepage;
@Path("../toolbar")
private Page toolbar;
@Path("/content/${market}/${language}")
private Page toolbar;
}
public abstract String value
Copyright © 2024. All rights reserved.