Annotation Interface MCRProperty


@Retention(RUNTIME) @Target({METHOD,FIELD}) @Inherited public @interface MCRProperty
This annotation tells which properties need to be assigned to which field or method. All annotated members need to be public. The fields should always have the type String and if you need a custom type, then you can annotate a method with a single parameter of type String, which can then create/retrieve the object and assign it to your field.
Author:
Sebastian Hofmann
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    boolean
     
  • Element Details

    • name

      String name
      Returns:
      The name of property
    • required

      boolean required
      Returns:
      true if the property has to be present in the properties. MCRConfigurationException is thrown if the property is required but not present.
      Default:
      true
    • absolute

      boolean absolute
      Returns:
      true if the property is absolute and not specific for this instance e.G. MCR.NameOfProject
      Default:
      false