Package org.nuxeo.ecm.web.resources.api
Interface Resource
-
- All Known Implementing Classes:
ResourceDescriptor
public interface Resource
Typed Web resource (js, css, bundle).- Since:
- 7.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getDependencies()
Names of the resource dependencies.String
getName()
String
getPath()
List<String>
getProcessors()
Names of the resource processors, hooking features like flavor replacement on the resource.String
getTarget()
Returns an optional target to push resources to in the page.String
getType()
String
getURI()
boolean
isShrinkable()
Returns true if resource can be minimized.
-
-
-
Field Detail
-
PREFIX
static final String PREFIX
Marker for Nuxeo web resources, used by URI locators.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
-
getType
String getType()
-
getPath
String getPath()
-
getURI
String getURI()
-
getTarget
String getTarget()
Returns an optional target to push resources to in the page.Currently only useful to JSF resources.
- Since:
- 7.10
-
getProcessors
List<String> getProcessors()
Names of the resource processors, hooking features like flavor replacement on the resource.
-
isShrinkable
boolean isShrinkable()
Returns true if resource can be minimized.Returns true by default if not specified.
-
-