Package org.nuxeo.ecm.web.resources.core
Class ResourceDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.web.resources.core.ResourceDescriptor
-
- All Implemented Interfaces:
Resource
public class ResourceDescriptor extends Object implements Resource
- Since:
- 7.3
-
-
Constructor Summary
Constructors Constructor Description ResourceDescriptor()
-
Method Summary
All Methods Instance Methods Concrete 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.void
setDependencies(List<String> dependencies)
void
setName(String name)
void
setPath(String path)
void
setProcessors(List<String> processors)
void
setShrinkable(boolean shrinkable)
void
setTarget(String target)
void
setType(String type)
void
setUri(String uri)
void
setURI(String uri)
-
-
-
Field Detail
-
target
public String target
Target for this resource.Currently only useful for JSF resources reallocation in the page.
- Since:
- 7.10
-
dependencies
public List<String> dependencies
-
processors
public List<String> processors
-
shrinkable
public boolean shrinkable
-
-
Constructor Detail
-
ResourceDescriptor
public ResourceDescriptor()
-
-
Method Detail
-
getDependencies
public List<String> getDependencies()
Description copied from interface:Resource
Names of the resource dependencies.- Specified by:
getDependencies
in interfaceResource
-
getProcessors
public List<String> getProcessors()
Description copied from interface:Resource
Names of the resource processors, hooking features like flavor replacement on the resource.- Specified by:
getProcessors
in interfaceResource
-
isShrinkable
public boolean isShrinkable()
Description copied from interface:Resource
Returns true if resource can be minimized.Returns true by default if not specified.
- Specified by:
isShrinkable
in interfaceResource
-
setDependencies
public void setDependencies(List<String> dependencies)
- Since:
- 7.4
-
setProcessors
public void setProcessors(List<String> processors)
- Since:
- 7.4
-
setShrinkable
public void setShrinkable(boolean shrinkable)
- Since:
- 7.4
-
getTarget
public String getTarget()
Description copied from interface:Resource
Returns an optional target to push resources to in the page.Currently only useful to JSF resources.
-
-