public class ScriptResource extends BaseScriptResource<ScriptResource> implements Comparable<ScriptResource>
This class implements the
Comparable interface, however the natural ordering provided here is not consistent with
equals, therefore this class should not be used as a key in a TreeMap for instance.| Modifier and Type | Class and Description |
|---|---|
class |
ScriptResource.DepInfo |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(ResourceId dependencyId) |
void |
addDependency(ResourceId dependencyId,
String alias,
String pluginRS) |
Module.Local |
addLocalModule(String contextPath,
Module.Local.Content[] contents,
String resourceBundle,
int priority) |
Module.Local |
addLocalModule(String contextPath,
String path,
String resourceBundle,
int priority) |
Module.Remote |
addRemoteModule(String contextPath,
String path,
int priority) |
void |
addSupportedLocale(Locale locale) |
int |
compareTo(ScriptResource o) |
String |
getAlias()
If no alias was set, return the last part of the resource name If resourceID is null, return null
|
Set<ResourceId> |
getClosure() |
Set<ResourceId> |
getDependencies() |
Set<ScriptResource.DepInfo> |
getDepInfo(ResourceId id) |
FetchMode |
getFetchMode() |
ScriptGroup |
getGroup() |
List<Module> |
getModules() |
boolean |
isEmpty() |
List<Module> |
removeModuleByContextPath(String contextPath) |
String |
toString() |
getParameterspublic boolean isEmpty()
public FetchMode getFetchMode()
public void addDependency(ResourceId dependencyId)
public void addDependency(ResourceId dependencyId, String alias, String pluginRS)
public Set<ResourceId> getClosure()
public Module.Local addLocalModule(String contextPath, String path, String resourceBundle, int priority)
public Module.Local addLocalModule(String contextPath, Module.Local.Content[] contents, String resourceBundle, int priority)
public Module.Remote addRemoteModule(String contextPath, String path, int priority)
public void addSupportedLocale(Locale locale)
addSupportedLocale in class BaseScriptResource<ScriptResource>public int compareTo(ScriptResource o)
compareTo in interface Comparable<ScriptResource>public Set<ResourceId> getDependencies()
getDependencies in class Resource<ScriptResource>public Set<ScriptResource.DepInfo> getDepInfo(ResourceId id)
public String getAlias()
public ScriptGroup getGroup()
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.