All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.consensus.configure.ConsensusDataContractAutoRegistrar Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.consensus.configure;

import com.jd.binaryproto.DataContractAutoRegistrar;
import com.jd.binaryproto.DataContractRegistry;
import com.jd.blockchain.consensus.ClientCredential;
import com.jd.blockchain.consensus.ClientIncomingSettings;
import com.jd.blockchain.consensus.ConsensusViewSettings;
import com.jd.blockchain.consensus.NodeNetworkAddress;
import com.jd.blockchain.consensus.NodeNetworkAddresses;
import com.jd.blockchain.consensus.NodeSettings;
import com.jd.blockchain.consensus.action.ActionRequest;
import com.jd.blockchain.consensus.action.ActionResponse;

public class ConsensusDataContractAutoRegistrar implements DataContractAutoRegistrar {
	
	public static final int ORDER = 80;
	
	@Override
	public int order() {
		return ORDER;
	}

	@Override
	public void initContext(DataContractRegistry registry) {
		DataContractRegistry.register(NodeSettings.class);
		DataContractRegistry.register(ConsensusViewSettings.class);
		DataContractRegistry.register(NodeNetworkAddress.class);
		DataContractRegistry.register(NodeNetworkAddresses.class);
		
		DataContractRegistry.register(ClientCredential.class);
		DataContractRegistry.register(ClientIncomingSettings.class);
		
		DataContractRegistry.register(ActionRequest.class);
		DataContractRegistry.register(ActionResponse.class);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy