T
- Bean typeB
- Concrete bean property set typepublic static interface BeanPropertySet.Builder<T,B extends BeanPropertySet<T>> extends HasConfiguration<ParameterSet>
BeanPropertySet
builder.Modifier and Type | Method and Description |
---|---|
B |
build()
Build the
BeanPropertySet instance. |
default <C> BeanPropertySet.Builder<T,B> |
configuration(ConfigProperty<C> configurationProperty,
C value)
Add a
BeanPropertySet configuration parameter using a ConfigProperty , with
ConfigProperty.getKey() as parameter name. |
BeanPropertySet.Builder<T,B> |
configuration(String name,
Object value)
Add a
BeanPropertySet configuration parameter. |
BeanPropertySet.Builder<T,B> |
identifiers(String... propertyNames)
Set given property names as
BeanPropertySet identifier properties. |
getConfiguration, hasConfiguration
BeanPropertySet.Builder<T,B> identifiers(String... propertyNames)
BeanPropertySet
identifier properties. Any previously declared identifier
property will be replaced by given identifier properties.
The property names to declare as identifiers must be present in the bean property set.
propertyNames
- The property names to declare as property set identifiersIllegalStateException
- If one of the property name to declare as identifier is not part of the bean
property setBeanPropertySet.Builder<T,B> configuration(String name, Object value)
BeanPropertySet
configuration parameter.name
- The parameter name to add (not null)value
- The configuration parameter valuedefault <C> BeanPropertySet.Builder<T,B> configuration(ConfigProperty<C> configurationProperty, C value)
BeanPropertySet
configuration parameter using a ConfigProperty
, with
ConfigProperty.getKey()
as parameter name.C
- Config property typeconfigurationProperty
- The ConfigProperty
to add (not null)value
- The configuration property valueB build()
BeanPropertySet
instance.BeanPropertySet
instanceCopyright © 2018 The Holon Platform. All rights reserved.