public String getFilePath(boolean debugEnabled, boolean cacheEnabled) { if(debugEnabled && hasDebug) { return getDebugPath(); } else if(cacheEnabled && hasMinified){ return getMinifiedPath(); } return getBaseFilePath() + JAVASCRIPT_SUFFIX; }
public String getCoreCssPath() { return getBaseCssPath() + "-core" + CSS_PREFIX; }
public String getBasePath() { return namespace.getPath() + module; }
public ModuleSet(Set<YuiDependency> dependencies) { modules = new Module[dependencies.size()]; for (YuiDependency dep : dependencies) { if (moduleCache.containsKey(dep.getModule())) { addModule(moduleCache.get(dep.getModule())); } else { Module mod = new Module(dep); moduleCache.put(dep.getModule(), mod); addModule(mod); } } }
public String getFilePath() { return getFilePath(false, false); }
Set<YuiDependency> getDependencies(YuiNamespace ns, String module) { if (cacheEnabled && modulesLoaded.containsKey(module)) { return modulesLoaded.get(module); } Set<YuiDependency> dependencies = dependencyResolver.resolveDependencies(ns, module); if (cacheEnabled) { modulesLoaded.put(module, dependencies); } return dependencies; } }
CacheEntry(Application application) { cacheEnabled = application.getConfigurationType().equals(Application.DEPLOYMENT); dependencyResolver = new YuiDependencyResolver(cacheEnabled); }
private Set<YuiDependency> fetchModuleDependencies(YuiNamespace namespace, String module) { Set<YuiDependency> dependencies = new LinkedHashSet<YuiDependency>(); YuiDependency newDependency = new YuiDependency(namespace, module); doFetchModuleDependencies(dependencies, newDependency); dependencies.add(newDependency); return dependencies; }
public String getModulePath() { return getBasePath() + "/" + module; }
public String getMinifiedPath() { return getBaseFilePath() + MIN_SUFFIX + JAVASCRIPT_SUFFIX; }
public Set<YuiDependency> resolveDependencies(YuiNamespace namespace, String module) { if (cacheEnabled && cachedDependencies.containsKey(module)) { return cachedDependencies.get(module); } else { if (!cachedNamespaces.contains(namespace)) cachedNamespaces.add(namespace); Set<YuiDependency> dependencies = fetchModuleDependencies(namespace, module); if (cacheEnabled) cachedDependencies.put(module, dependencies); return dependencies; } }
public ModuleSet(Set<YuiDependency> dependencies) { modules = new Module[dependencies.size()]; for (YuiDependency dep : dependencies) { if (moduleCache.containsKey(dep.getModule())) { addModule(moduleCache.get(dep.getModule())); } else { Module mod = new Module(dep); moduleCache.put(dep.getModule(), mod); addModule(mod); } } }
Set<YuiDependency> getDependencies(YuiNamespace ns, String module) { if (cacheEnabled && modulesLoaded.containsKey(module)) { return modulesLoaded.get(module); } Set<YuiDependency> dependencies = dependencyResolver.resolveDependencies(ns, module); if (cacheEnabled) { modulesLoaded.put(module, dependencies); } return dependencies; } }
CacheEntry(Application application) { cacheEnabled = application.getConfigurationType().equals(Application.DEPLOYMENT); dependencyResolver = new YuiDependencyResolver(cacheEnabled); }
private String getBaseFilePath() { return getBasePath() + "/" + filename; }
public String getCssPath() { return getBaseCssPath() + CSS_PREFIX; }
public String getDebugPath() { return getBaseFilePath() + DEBUG_SUFFIX + JAVASCRIPT_SUFFIX; }
Set<YuiDependency> getDependencies(YuiNamespace ns, String module) { if (cacheEnabled && modulesLoaded.containsKey(module)) { return modulesLoaded.get(module); } Set<YuiDependency> dependencies = dependencyResolver.resolveDependencies(ns, module); if (cacheEnabled) { modulesLoaded.put(module, dependencies); } return dependencies; } }
CacheEntry(Application application) { cacheEnabled = application.getConfigurationType().equals(RuntimeConfigurationType.DEPLOYMENT); dependencyResolver = new YuiDependencyResolver(cacheEnabled); }
private String getBaseCssPath() { return getBasePath() + ASSETS_PATH + module; }