Annotation Type Preference


  • @Retention(RUNTIME)
    @Target(ANNOTATION_TYPE)
    public @interface Preference
    This annotation is used within composite portlet configuration annotations to represent a single portlet preference. It cannot be used as a stand-alone portlet annotation.
    Since:
    3.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String name
      The preference name.
      String[] values
      The preference values array.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean isReadOnly
      Marks the preference as being read-only.
    • Element Detail

      • name

        String name
        The preference name.
        Returns:
        The preference name
      • values

        String[] values
        The preference values array.
        Returns:
        The preference values.
      • isReadOnly

        boolean isReadOnly
        Marks the preference as being read-only.
        Returns:
        The read-only flag
        Default:
        false