public interface PropertyDefinition
TypeConverters and
ValueValidators 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()
boolean optional()
ValueValidator
test.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.