Class SassDependenciesList
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.core.ui.resources.css.sass.SassDependenciesList
-
- All Implemented Interfaces:
ResourceDependenciesList
,LogEnabled
,Serviceable
- Direct Known Subclasses:
WebSassDependenciesList
public class SassDependenciesList extends AbstractLogEnabled implements ResourceDependenciesList, Serviceable
Dependencies list for sass files compiled into css Uncompiled sass files don't depend on anything and are managed by the DefaultResourceDependenciesList
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
__SASS_EXTENSION
List of sass extensionsprivate Map<String,Pair<List<String>,Long>>
_dependenciesCache
protected RequestAttributesHelper
_requestAttributesHelper
RequestAttributesHelperprotected SassImportHelper
_sassImportHelper
The Sass import helperprotected SourceResolver
_sourceResolver
The source resolver
-
Constructor Summary
Constructors Constructor Description SassDependenciesList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Set<HashCache.UriData>
getDependenciesList(String uri, String media, Source source, long lastModified, boolean firstLevel)
Set<HashCache.UriData>
getDependenciesList(String uri, Map<String,String> data)
Get the list of dependenciesprivate Set<HashCache.UriData>
getDependenciesList(SassImportHelper.SassImportInfo sassImportInfo, String media)
private Set<HashCache.UriData>
getDependenciesList(SassImportHelper.SassImportInfo sassImportInfo, String media, boolean firstLevel)
int
getPriority()
Get the priority of this FileDependenciesList if multiple are supportedprotected SassImportHelper.SassImportInfo
getSassImportInfo(String uri)
Get the Sass import informations from the URIboolean
isSupported(String uri)
Is the uri supported to get the list of dependenciesvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
__SASS_EXTENSION
protected static final String[] __SASS_EXTENSION
List of sass extensions
-
_requestAttributesHelper
protected RequestAttributesHelper _requestAttributesHelper
RequestAttributesHelper
-
_sourceResolver
protected SourceResolver _sourceResolver
The source resolver
-
_sassImportHelper
protected SassImportHelper _sassImportHelper
The Sass import helper
-
-
Constructor Detail
-
SassDependenciesList
public SassDependenciesList()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
isSupported
public boolean isSupported(String uri)
Description copied from interface:ResourceDependenciesList
Is the uri supported to get the list of dependencies- Specified by:
isSupported
in interfaceResourceDependenciesList
- Parameters:
uri
- The uri- Returns:
- True if the uri is supported
-
getPriority
public int getPriority()
Description copied from interface:ResourceDependenciesList
Get the priority of this FileDependenciesList if multiple are supported- Specified by:
getPriority
in interfaceResourceDependenciesList
- Returns:
- The priority. The highest value will be used
-
getDependenciesList
public Set<HashCache.UriData> getDependenciesList(String uri, Map<String,String> data)
Description copied from interface:ResourceDependenciesList
Get the list of dependencies- Specified by:
getDependenciesList
in interfaceResourceDependenciesList
- Parameters:
uri
- The input sourcedata
- Additional data, specific per ResourceDependenciesList implementations- Returns:
- The list of dependencies URIs
-
getSassImportInfo
protected SassImportHelper.SassImportInfo getSassImportInfo(String uri)
Get the Sass import informations from the URI- Parameters:
uri
- The URI- Returns:
- The information
-
getDependenciesList
private Set<HashCache.UriData> getDependenciesList(SassImportHelper.SassImportInfo sassImportInfo, String media)
-
getDependenciesList
private Set<HashCache.UriData> getDependenciesList(SassImportHelper.SassImportInfo sassImportInfo, String media, boolean firstLevel)
-
getDependenciesList
private Set<HashCache.UriData> getDependenciesList(String uri, String media, Source source, long lastModified, boolean firstLevel)
-
-