O
- The Object being built by BB
- The Builder that is building O and is configured by AnnotationConfigurerAdapter
I
- 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 Resource
s.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
Resource s 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
Resource s to this builder. |
ResourceConfigurer<I> |
resources(java.util.Set<org.springframework.core.io.Resource> resources)
Adds a
Set of Resource s to this builder. |
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and
public void configure(B builder) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
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 Resource
s 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)
Resource
s to this builder.resources
in interface ResourceConfigurer<I>
resources
- the resourcesResourceConfigurer
for chainingpublic java.util.Set<org.springframework.core.io.Resource> getResources()
Resource
s configured for this builder.protected boolean configureResources(B builder, java.util.Set<org.springframework.core.io.Resource> resources)
builder
- the builderresources
- the resources