@Beta public class ApplicationService extends Object
| Constructor and Description |
|---|
ApplicationService()
Provides an Application Service that contains all provided credentials and can be used to receive a contract
object from the Fabric Service.
|
ApplicationService(ChannelService channelService,
String contractName)
Provides an Application Service that contains all provided credentials and can be used to receive a contract
object from the Fabric Service.
|
ApplicationService(String userProvidedServiceName)
Provides an Application Service that contains all provided credentials and can be used to receive a contract
object from the Fabric Service.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelService |
getChannelService() |
String |
getContractName() |
public ApplicationService(@Nonnull ChannelService channelService, @Nonnull String contractName)
channelService - A Channel Service that contains all credentials and information to interact with the Hyperledger
Fabric channel that has the instantiated chaincodecontractName - The name of the chaincode that is instantiated on the channelpublic ApplicationService(@Nonnull String userProvidedServiceName)
userProvidedServiceName - The name of the user-provided service (only mandatory if there are multiple user-provided services
bound to the application)IllegalStateException - if the user-provided service with the given name could not be foundIllegalArgumentException - if the user-provided service is not a hyperledger-fabric ApplicationService or some credentials are
missing or can not be parsedpublic ApplicationService()
IllegalStateException - if there are no or more than one user-provided servicesIllegalArgumentException - if the user-provided service is not a hyperledger-fabric ApplicationService or some credentials are
missing or can not be parsed@Nonnull public ChannelService getChannelService()
Copyright © 2020 SAP SE. All rights reserved.