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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.protected boolean
configureProperties
(B builder, Properties properties) Configure properties.Gets theProperties
configured for this builder.properties
(Map<String, String> properties) properties
(Properties properties) Adds aProperties
to this builder.Adds a property 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
-
DefaultPropertiesConfigurer
public DefaultPropertiesConfigurer()
-
-
Method Details
-
properties
Adds aProperties
to this builder.- Specified by:
properties
in interfacePropertiesConfigurer<O>
- Parameters:
properties
- the properties- Returns:
- the
PropertiesConfigurer
for chaining
-
properties
- Specified by:
properties
in interfacePropertiesConfigurer<O>
-
property
Adds a property to this builder.- Specified by:
property
in interfacePropertiesConfigurer<O>
- Parameters:
key
- the keyvalue
- the value- Returns:
- the
PropertiesConfigurer
for chaining
-
getProperties
Gets theProperties
configured for this builder.- Returns:
- the properties
-
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
-
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
-