Class DefaultResourceConfigurer<O,I,B extends AnnotationBuilder<O>>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter<O,I,B>
org.springframework.statemachine.config.common.annotation.configurers.DefaultResourceConfigurer<O,I,B>
- Type Parameters:
O
- The Object being built by BB
- The Builder that is building O and is configured byAnnotationConfigurerAdapter
I
- The type of an interface of B
- All Implemented Interfaces:
AnnotationConfigurer<O,
,B> AnnotationConfigurerBuilder<I>
,ResourceConfigurer<I>
public 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.protected boolean
configureResources
(B builder, Set<org.springframework.core.io.Resource> resources) Configure resources.Set<org.springframework.core.io.Resource>
Gets theResource
s configured for this builder.Adds aResource
to this builder.resource
(org.springframework.core.io.Resource resource) Adds aResource
to this builder.Adds aResource
s to this builder.Adds aSet
ofResource
s to this builder.Methods inherited from class org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Constructor Details
-
DefaultResourceConfigurer
public DefaultResourceConfigurer()
-
-
Method Details
-
configure
Description copied from interface:AnnotationConfigurer
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.- Specified by:
configure
in interfaceAnnotationConfigurer<O,
I> - Overrides:
configure
in classAnnotationConfigurerAdapter<O,
I, B extends AnnotationBuilder<O>> - Parameters:
builder
- the builder- Throws:
Exception
- if error occurred
-
resources
Adds aSet
ofResource
s to this builder.- Specified by:
resources
in interfaceResourceConfigurer<O>
- Parameters:
resources
- the resources- Returns:
- the
ResourceConfigurer
for chaining
-
resource
Adds aResource
to this builder.- Specified by:
resource
in interfaceResourceConfigurer<O>
- Parameters:
resource
- the resource- Returns:
- the
ResourceConfigurer
for chaining
-
resource
Adds aResource
to this builder.- Specified by:
resource
in interfaceResourceConfigurer<O>
- Parameters:
resource
- the resource- Returns:
- the
ResourceConfigurer
for chaining
-
resources
Adds aResource
s to this builder.- Specified by:
resources
in interfaceResourceConfigurer<O>
- Parameters:
resources
- the resources- Returns:
- the
ResourceConfigurer
for chaining
-
getResources
Gets theResource
s configured for this builder.- Returns:
- the resources
-
configureResources
protected boolean configureResources(B builder, Set<org.springframework.core.io.Resource> resources) Configure resources. If this implementation is extended, custom configure handling can be handled here.- Parameters:
builder
- the builderresources
- the resources- Returns:
- true, if resources configure is handled
-