Annotation Type PropRef


  • @Documented
    @Retention(CLASS)
    @Target({FIELD,LOCAL_VARIABLE})
    public @interface PropRef
    Used to define a property reference to a class field or local variable. At compile time, the reference is checked by the PostJavaCompiler. The annotation is not used at Runtime.
    Author:
    Christopher Mindus
    • Required Element Summary

      Required Elements 
      Modifier and TypeRequired ElementDescription
      java.lang.Stringref
      The Full String Reference to the Property.
    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      java.lang.Class<? extends GProp>type
      The Property Type class expected, default com.iizix.prop.GProp.class meaning no checking as all properties extends from GProp.
      java.lang.Class<?>value
      The Property Value class expected, default means no type validation.
    • Element Detail

      • ref

        java.lang.String ref
        The Full String Reference to the Property.
        Returns:
        The Full String Reference to the Property (includes the Module Project and slashes).
      • type

        java.lang.Class<? extends GProp> type
        The Property Type class expected, default com.iizix.prop.GProp.class meaning no checking as all properties extends from GProp.

        The class does not need to be an exact match, it can be a subclass of the real class.

        Example: type = com.iizix.prop.PropCnr.class, or type = KStringProp.class.

        Returns:
        The expected property class name, including package.
        Default:
        com.iizix.prop.GProp.class
      • value

        java.lang.Class<?> value
        The Property Value class expected, default means no type validation.

        The class does not need to be an exact match, it can be a subclass of the real class.

        Example: value = String.class, or value = java.lang.Integer.class.

        Returns:
        The expected property class name, including package.
        Default:
        java.lang.Object.class