Annotation Type Property
-
@Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface PropertyRepresents a Protocol property assigned from corresponding field in JGroups properties file.Since all protocol properties are read as String instances from properties file properties need to be converted to an appropriate field type of a matching Protocol instance. JGroups supplies set of converters in
PropertyConvertersclass.Third parties can provide their own converters if such need arises by implementing
PropertyConverterinterface and by specifying that converter as converter on a specific Property annotation of a field or a method instance.Property annotation can decorate either a field or a method of a Property class. If a method is decorated with Property annotation it is assumed that such a method is a setter with only one parameter type that a specified converter can convert from a String to an actual type.
- Author:
- Vladimir Blagojevic
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>converterjava.lang.StringdefaultValueIPv4Global.NON_LOOPBACK_ADDRESS means pick any valid non-loopback IPv4 addressjava.lang.StringdefaultValueIPv6Global.NON_LOOPBACK_ADDRESS means pick any valid non-loopback IPv6 addressjava.lang.StringdependsUponjava.lang.StringdeprecatedMessagejava.lang.StringdescriptionbooleanexposeAsManagedAttributeExpose this property also as a managed attributejava.lang.Stringnamejava.lang.String[]systemPropertybooleanwritable
-