Package org.iplass.mtp.spi
Interface ObjectBuilder<T>
- Type Parameters:
T
-
public interface ObjectBuilder<T>
The Builder interface that can be used to customize the Service definition's property/bean value generation process.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Implement to generate and return an instance.default void
If there is a nested arg definition in the property/bean definition of the configuration file, its value is set.default void
setClassName
(String className) If class attribute is specified in property/bean definition of configuration file, that value will be set.default void
The name attribute specified in the property/bean definition of the configuration file is set.default void
setProperties
(Map<String, Object> properties) If there is a nested property definition in the property/bean definition of the configuration file, its value is set.default void
If value attribute (or nested value element) is specified in property definition of configuration file, that value will be set.
-
Method Details
-
setName
The name attribute specified in the property/bean definition of the configuration file is set.- Parameters:
name
-
-
setValue
If value attribute (or nested value element) is specified in property definition of configuration file, that value will be set.- Parameters:
value
-
-
setClassName
If class attribute is specified in property/bean definition of configuration file, that value will be set.- Parameters:
className
-
-
setProperties
If there is a nested property definition in the property/bean definition of the configuration file, its value is set. If there are multiple property definitions with the same name, multiple instances are stored in the map value as List type.- Parameters:
properties
-
-
setArgs
If there is a nested arg definition in the property/bean definition of the configuration file, its value is set. If there are multiple arg definitions with the same name, multiple instances are stored in the map value as List type.- Parameters:
args
-
-
build
T build()Implement to generate and return an instance.- Returns:
-