Annotation Type Mergeable


  • @Target({METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface Mergeable
    Identifies that the marked cockpit configuration class can be merged with the same class from the parent context.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] key
      List of key properties of the marked class.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String mergeMethod
      Optional name of the merge method to be used to do the merge object with its counterpart form the parent context.
      java.lang.String mergeModeProperty
      Optional name of a property holding the merge mode.
    • Element Detail

      • key

        java.lang.String[] key
        List of key properties of the marked class. These properties will be taken as key to identify the counterpart object in the parent context.
        Returns:
        key properties of the marked class
      • mergeMethod

        java.lang.String mergeMethod
        Optional name of the merge method to be used to do the merge object with its counterpart form the parent context. This method must accept one parameter for the counterpart object to be passed.
        Returns:
        optional name of the merge method
        Default:
        ""
      • mergeModeProperty

        java.lang.String mergeModeProperty
        Optional name of a property holding the merge mode. The property must contain one of these modes (or be empty which defaults to "merge"): "merge" "replace" "remove"
        Returns:
        optional name of a property holding the merge mode
        Default:
        ""