Package org.jgroups.conf
Interface PropertyConverter
- All Known Implementing Classes:
PropertyConverters.BindInterface,PropertyConverters.Default,PropertyConverters.InitialHosts,PropertyConverters.InitialHosts2,PropertyConverters.NetworkInterfaceList,PropertyConverters.PolicyConverter,TLS.SniMatcherConverter
public interface PropertyConverter
Represents a property converter that takes an input from corresponding field
in JGroups properties file as a String and converts it to a matching Java
type.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconvert(Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope, StackType ip_version) default Objectconvert(Property annotation, Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope, StackType ip_version) Converts the value to a string.
-
Method Details
-
convert
Object convert(Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope, StackType ip_version) throws Exception - Throws:
Exception
-
convert
default Object convert(Property annotation, Object obj, Class<?> propertyFieldType, String propertyName, String propertyValue, boolean check_scope, StackType ip_version) throws Exception - Throws:
Exception
-
toString
Converts the value to a string. The default is to simply invoke Object.toString(), however, some objects need to be printed specially, e.g. a long array etc.- Parameters:
value-- Returns:
-