Annotation Type Contract


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Contract
    Class level annotation that identifies this class as being a contract. Can supply information and an alternative name for the contract rather than the classname
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Info info
      The Info object can be supplied to provide additional information about the contract, including title, description, version and license
      java.lang.String name
      Normally the name of the class is used to refer to the contract (name without package).
    • Element Detail

      • info

        Info info
        The Info object can be supplied to provide additional information about the contract, including title, description, version and license
        Returns:
        Info object
        Default:
        @org.hyperledger.fabric.contract.annotation.Info
      • name

        java.lang.String name
        Normally the name of the class is used to refer to the contract (name without package). This can be altered if wished.
        Returns:
        Name of the contract to be used instead of the Classname
        Default:
        ""