public interface PropertyDefinition
All verification is done on property level which means that the configuration overall might still be invalid and needs to be checked by the provider vendor before actually using it.
All used TypeConverter
s and
ValueValidator
s need to be fully thread-safe
and are recommended to be stateless to prevent any kind of unexpected concurrency
issues.
Modifier and Type | Method and Description |
---|---|
String |
key()
Returns the key (the name) of this property inside the configuration.
|
boolean |
optional()
Defines if this property is optional or not.
|
TypeConverter |
typeConverter()
The
TypeConverter to be used to convert the
string value read from XML to the expected type automatically. |
ValueValidator |
validator()
Returns an optional validator to validate a value before finalizing the
configuration.
|
TypeConverter typeConverter()
TypeConverter
to be used to convert the
string value read from XML to the expected type automatically.String key()
ValueValidator validator()
null
in case
there is no validation required.boolean optional()
ValueValidator
test.true
if this property is optional, false
otherwiseCopyright © 2018 Hazelcast, Inc.. All rights reserved.