Class DefaultPropertiesConfigurer<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.DefaultPropertiesConfigurer<O,I,B>
- Type Parameters:
O- The Object being built by BI- The type of interface or builder itself returned by the configurerB- The Builder that is building O and is configured byAnnotationConfigurerAdapter
- All Implemented Interfaces:
AnnotationConfigurer<O,,B> AnnotationConfigurerBuilder<I>,PropertiesConfigurer<I>
public class DefaultPropertiesConfigurer<O,I,B extends AnnotationBuilder<O>>
extends AnnotationConfigurerAdapter<O,I,B>
implements PropertiesConfigurer<I>
AnnotationConfigurer
which knows how to handle configuring a Properties.- Author:
- Janne Valkealahti
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure theAnnotationBuilderby setting the necessary properties on theAnnotationBuilder.protected booleanconfigureProperties(B builder, Properties properties) Configure properties.Gets thePropertiesconfigured for this builder.properties(Map<String, String> properties) properties(Properties properties) Adds aPropertiesto this builder.Adds a property 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
-
DefaultPropertiesConfigurer
public DefaultPropertiesConfigurer()
-
-
Method Details
-
properties
Adds aPropertiesto this builder.- Specified by:
propertiesin interfacePropertiesConfigurer<O>- Parameters:
properties- the properties- Returns:
- the
PropertiesConfigurerfor chaining
-
properties
- Specified by:
propertiesin interfacePropertiesConfigurer<O>
-
property
Adds a property to this builder.- Specified by:
propertyin interfacePropertiesConfigurer<O>- Parameters:
key- the keyvalue- the value- Returns:
- the
PropertiesConfigurerfor chaining
-
getProperties
Gets thePropertiesconfigured for this builder.- Returns:
- the properties
-
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
-
configureProperties
Configure properties. If this implementation is extended, custom configure handling can be handled here.- Parameters:
builder- the builderproperties- the properties- Returns:
- true, if properties configure is handled
-