public class ResourceDescriptor extends Object implements Resource
Modifier and Type | Field and Description |
---|---|
List<String> |
dependencies |
String |
name |
String |
path |
List<String> |
processors |
boolean |
shrinkable |
String |
target
Target for this resource.
|
String |
type |
protected String |
uri |
Constructor and Description |
---|
ResourceDescriptor() |
Modifier and Type | Method and 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) |
public String target
Currently only useful for JSF resources reallocation in the page.
public List<String> dependencies
public List<String> processors
public boolean shrinkable
public ResourceDescriptor()
public List<String> getDependencies()
Resource
getDependencies
in interface Resource
public List<String> getProcessors()
Resource
getProcessors
in interface Resource
public boolean isShrinkable()
Resource
Returns true by default if not specified.
isShrinkable
in interface Resource
public void setDependencies(List<String> dependencies)
public void setProcessors(List<String> processors)
public void setShrinkable(boolean shrinkable)
public String getTarget()
Resource
Currently only useful to JSF resources.
Copyright © 2018 Nuxeo. All rights reserved.