org.hyperledger.fabric.contract.annotation.Serializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-chaincode-shim Show documentation
Show all versions of fabric-chaincode-shim Show documentation
Hyperledger Fabric Java Chaincode Shim
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.contract.annotation;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Class level annotation that defines the serializer that should be used to
* convert objects to and from the wire format.
*
* This should annotate a class that implements the Serializer interface
*/
@Retention(RUNTIME)
@Target({ElementType.TYPE,ElementType.TYPE_USE})
public @interface Serializer {
public enum TARGET {
TRANSACTION, ALL
}
TARGET target() default Serializer.TARGET.ALL;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy