public class Modules extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialized |
protected Map<String,String> |
moduleAliases |
protected Map<String,Module> |
modules |
| Modifier | Constructor and Description |
|---|---|
protected |
Modules() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPage(Module module,
String relativeScreenId) |
static Modules |
getInstance() |
Module |
getModule(String id) |
URL |
getModuleRelativeURL(Module module,
String path) |
URL |
getModuleRootURL(String moduleId) |
String |
getRelativeScreenId(Module module,
String screenID) |
void |
initialize() |
boolean |
isClassOnModulePath(String targetClass,
String moduleId) |
protected boolean |
isClassOnModulePath(String targetClass,
String moduleId,
Set<String> alreadySearched) |
boolean |
isClassOnModulePath(URL targetClassFile,
String moduleId) |
protected boolean |
isClassOnModulePath(URL resource,
String moduleId,
Set<String> alreadySearched) |
boolean |
isResourceOnModulePath(URL url,
String moduleId,
boolean searchOnlyPublicFolders) |
protected boolean |
isResourceOnModulePath(URL resource,
String moduleId,
Set<String> alreadySearched,
boolean searchOnlyPublicFolders) |
boolean |
isResourceOnModulePathOrContext(URL url,
String moduleId,
boolean searchOnlyPublicFolders) |
Iterator<Module> |
iterateModules() |
protected Module |
registerModule(URL moduleDescriptor,
String moduleFullName,
Document moduleDocument) |
String |
removeModuleIfPresent(String screenId) |
void |
reset() |
String[] |
searchModulePages(Module module) |
public static Modules getInstance()
public void reset()
public void initialize()
public boolean isClassOnModulePath(String targetClass, String moduleId)
targetClass - moduleId - public boolean isClassOnModulePath(URL targetClassFile, String moduleId)
targetClassFile - moduleId - public boolean isResourceOnModulePathOrContext(URL url, String moduleId, boolean searchOnlyPublicFolders)
url - moduleId - public boolean isResourceOnModulePath(URL url, String moduleId, boolean searchOnlyPublicFolders)
url - moduleId - public String getRelativeScreenId(Module module, String screenID)
module - screenID - public URL getModuleRelativeURL(Module module, String path)
module - path - protected boolean isClassOnModulePath(String targetClass, String moduleId, Set<String> alreadySearched)
targetClass - module - protected boolean isClassOnModulePath(URL resource, String moduleId, Set<String> alreadySearched)
protected boolean isResourceOnModulePath(URL resource, String moduleId, Set<String> alreadySearched, boolean searchOnlyPublicFolders)
resource - moduleId - alreadySearched - protected Module registerModule(URL moduleDescriptor, String moduleFullName, Document moduleDocument)
templateId - template - public String removeModuleIfPresent(String screenId)
screenId - Copyright © 2015. All rights reserved.