O - The Object being built by BB - The Builder that is building O and is configured by AnnotationConfigurerAdapterI - The type of an interface of Bpublic class DefaultResourceConfigurer<O,I,B extends AnnotationBuilder<O>> extends AnnotationConfigurerAdapter<O,I,B> implements ResourceConfigurer<I>
AnnotationConfigurer which knows how to handle
configuring a Resources.| Constructor and Description |
|---|
DefaultResourceConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(B builder)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder. |
protected boolean |
configureResources(B builder,
java.util.Set<org.springframework.core.io.Resource> resources)
Configure resources.
|
java.util.Set<org.springframework.core.io.Resource> |
getResources()
Gets the
Resources configured for this builder. |
ResourceConfigurer<I> |
resource(org.springframework.core.io.Resource resource)
Adds a
Resource to this builder. |
ResourceConfigurer<I> |
resource(java.lang.String resource)
Adds a
Resource to this builder. |
ResourceConfigurer<I> |
resources(java.util.List<java.lang.String> resources)
Adds a
Resources to this builder. |
ResourceConfigurer<I> |
resources(java.util.Set<org.springframework.core.io.Resource> resources)
Adds a
Set of Resources to this builder. |
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandpublic void configure(B builder) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder by setting the necessary properties
on the AnnotationBuilder.configure in interface AnnotationConfigurer<O,B extends AnnotationBuilder<O>>configure in class AnnotationConfigurerAdapter<O,I,B extends AnnotationBuilder<O>>builder - the builderjava.lang.Exception - if error occurredpublic ResourceConfigurer<I> resources(java.util.Set<org.springframework.core.io.Resource> resources)
Set of Resources to this builder.resources in interface ResourceConfigurer<I>resources - the resourcesResourceConfigurer for chainingpublic ResourceConfigurer<I> resource(org.springframework.core.io.Resource resource)
Resource to this builder.resource in interface ResourceConfigurer<I>resource - the resourceResourceConfigurer for chainingpublic ResourceConfigurer<I> resource(java.lang.String resource)
Resource to this builder.resource in interface ResourceConfigurer<I>resource - the resourceResourceConfigurer for chainingpublic ResourceConfigurer<I> resources(java.util.List<java.lang.String> resources)
Resources to this builder.resources in interface ResourceConfigurer<I>resources - the resourcesResourceConfigurer for chainingpublic java.util.Set<org.springframework.core.io.Resource> getResources()
Resources configured for this builder.protected boolean configureResources(B builder, java.util.Set<org.springframework.core.io.Resource> resources)
builder - the builderresources - the resources