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 byAnnotationConfigurerAdapterI- 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 Resources.- Author:
- Janne Valkealahti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure theAnnotationBuilderby setting the necessary properties on theAnnotationBuilder.protected booleanconfigureResources(B builder, Set<org.springframework.core.io.Resource> resources) Configure resources.Set<org.springframework.core.io.Resource>Gets theResources configured for this builder.Adds aResourceto this builder.resource(org.springframework.core.io.Resource resource) Adds aResourceto this builder.Adds aResources to this builder.Adds aSetofResources to this builder.Methods inherited from class org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Constructor Details
-
DefaultResourceConfigurer
public DefaultResourceConfigurer()
-
-
Method Details
-
configure
Description copied from interface:AnnotationConfigurerConfigure theAnnotationBuilderby setting the necessary properties on theAnnotationBuilder.- Specified by:
configurein interfaceAnnotationConfigurer<O,I> - Overrides:
configurein classAnnotationConfigurerAdapter<O,I, B extends AnnotationBuilder<O>> - Parameters:
builder- the builder- Throws:
Exception- if error occurred
-
resources
Adds aSetofResources to this builder.- Specified by:
resourcesin interfaceResourceConfigurer<O>- Parameters:
resources- the resources- Returns:
- the
ResourceConfigurerfor chaining
-
resource
Adds aResourceto this builder.- Specified by:
resourcein interfaceResourceConfigurer<O>- Parameters:
resource- the resource- Returns:
- the
ResourceConfigurerfor chaining
-
resource
Adds aResourceto this builder.- Specified by:
resourcein interfaceResourceConfigurer<O>- Parameters:
resource- the resource- Returns:
- the
ResourceConfigurerfor chaining
-
resources
Adds aResources to this builder.- Specified by:
resourcesin interfaceResourceConfigurer<O>- Parameters:
resources- the resources- Returns:
- the
ResourceConfigurerfor chaining
-
getResources
Gets theResources 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
-