Class ResourceChainRegistration
java.lang.Object
org.springframework.web.servlet.config.annotation.ResourceChainRegistration
Assists with the registration of resource resolvers and transformers.
- Since:
- 4.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionResourceChainRegistration
(boolean cacheResources) ResourceChainRegistration
(boolean cacheResources, Cache cache) -
Method Summary
Modifier and TypeMethodDescriptionaddResolver
(ResourceResolver resolver) Add a resource resolver to the chain.addTransformer
(ResourceTransformer transformer) Add a resource transformer to the chain.protected List<ResourceResolver>
protected List<ResourceTransformer>
-
Constructor Details
-
ResourceChainRegistration
public ResourceChainRegistration(boolean cacheResources) -
ResourceChainRegistration
-
-
Method Details
-
addResolver
Add a resource resolver to the chain.- Parameters:
resolver
- the resolver to add- Returns:
- the current instance for chained method invocation
-
addTransformer
Add a resource transformer to the chain.- Parameters:
transformer
- the transformer to add- Returns:
- the current instance for chained method invocation
-
getResourceResolvers
-
getResourceTransformers
-