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

Element Detail

target

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


key

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

Returns:
the key

label

public abstract 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 String[] categories
The contribution categories. Categories can be shared between contributions

Default:
{}

targetFacets

public abstract String[] targetFacets
Default:
{}

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.