Class ProcessingVisitor.ExcludeDependenciesVisitor
- java.lang.Object
-
- com.composum.sling.clientlibs.processor.AbstractClientlibVisitor
-
- com.composum.sling.clientlibs.processor.ProcessingVisitor.ExcludeDependenciesVisitor
-
- All Implemented Interfaces:
ClientlibVisitor
- Enclosing class:
- ProcessingVisitor
protected static class ProcessingVisitor.ExcludeDependenciesVisitor extends AbstractClientlibVisitor
If some files are included in / requested by dependencies of the rendered client library, these must not be included into the cached file, since these would be loaded twice by the page. Thus, all dependencies are processed by this visitor. We need a separate visitor as to note embedded stuff in client libraries that are dependencies of the processed library has to be noted as well, and this cannot easily be distinguished by the visit methods arguments.This visitor is necessary since the dependencies have to be processed as well since they might override file versions or exclude stuff from embedding.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.composum.sling.clientlibs.handle.ClientlibVisitor
ClientlibVisitor.VisitorMode
-
-
Field Summary
-
Fields inherited from class com.composum.sling.clientlibs.processor.AbstractClientlibVisitor
embeddedHash, hasEmbeddedFiles, HASH_PATTERN, LOG, owner, processedElements, resolver, service
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExcludeDependenciesVisitor(ClientlibElement owner, ClientlibService service, org.apache.sling.api.resource.ResourceResolver resolver, LinkedHashSet<ClientlibLink> processedElements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientlibVisitor
createVisitorFor(ClientlibElement element)
Creates a new visitor for the given clientlib or category as owner.-
Methods inherited from class com.composum.sling.clientlibs.processor.AbstractClientlibVisitor
action, action, action, action, action, alreadyProcessed, execute, getHash, getOwner, getProcessedElements, getVisitorFor, isNotProcessed, markAsProcessed, notPresent, removeMinificationDuplicates, resolveAndAccept, supportsEmbedding, updateHash, visit, visit, visit, visit, visit
-
-
-
-
Constructor Detail
-
ExcludeDependenciesVisitor
protected ExcludeDependenciesVisitor(ClientlibElement owner, ClientlibService service, org.apache.sling.api.resource.ResourceResolver resolver, LinkedHashSet<ClientlibLink> processedElements)
-
-
Method Detail
-
createVisitorFor
protected ClientlibVisitor createVisitorFor(ClientlibElement element)
Description copied from class:AbstractClientlibVisitor
Creates a new visitor for the given clientlib or category as owner. That'll usually be of the same type as ourselves. Caution: they have to share the sameAbstractClientlibVisitor.processedElements
set!- Specified by:
createVisitorFor
in classAbstractClientlibVisitor
-
-