Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.app.annotations
Annotation Type ResourceExtension


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ResourceExtension

Used to annotate extension resources. Extension resources are used to insert new sub-locators to an existing resource. The extension resource will be instantiated and returned when its key match the path segment on the target resource.

Author:
Bogdan Stefanescu

Required Element Summary
 java.lang.String key
          The path segment where this resource should be installed.
 java.lang.Class<? extends ExtensibleResource> target
          The target resource where this resource should be contributed.
 
Optional Element Summary
 java.lang.String[] categories
          The contribution categories.
 java.lang.String label
          A label to be displayed in the link that points to the contributed resource.
 java.lang.String[] targetFacets
           
 

Element Detail

target

public abstract java.lang.Class<? extends ExtensibleResource> target
The target resource where this resource should be contributed.


key

public abstract java.lang.String key
The path segment where this resource should be installed.

Returns:
the key

label

public abstract java.lang.String label
A label to be displayed in the link that points to the contributed resource. If not specified the label will be fetched from i18n messages of the contribution module using the key {class_name}.label where class_name is the absolute name of the contribution class.

Default:
""

categories

public abstract java.lang.String[] categories
The contribution categories. Categories can be shared between contributions

Default:
{}

targetFacets

public abstract java.lang.String[] targetFacets
Default:
{}

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.