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

server.src.GeneratedContractsResourceImpl.mustache Maven / Gradle / Ivy

There is a newer version: 4.8.4
Show newest version
package {{packageName}}.server

{{#serverImports}}
    {{import}}LifecycleImpl
{{/serverImports}}
import org.glassfish.jersey.server.ExtendedUriInfo
import org.web3j.protocol.Web3j
import org.web3j.tx.TransactionManager
import org.web3j.tx.gas.ContractGasProvider
import javax.annotation.processing.Generated
import {{packageName}}.core.{{projectName}}Resource
import org.web3j.openapi.server.SubResourceImpl

@Generated
class {{projectName}}ResourceImpl(
    web3j: Web3j,
    transactionManager: TransactionManager,
    defaultGasProvider: ContractGasProvider,
    uriInfo: ExtendedUriInfo
) : {{projectName}}Resource, SubResourceImpl(uriInfo) {

{{#contracts}}
    {{#contractDetails}}
        override val {{decapitalizedContractName}} = {{capitalizedContractName}}LifecycleImpl(
        web3j,
        transactionManager,
        defaultGasProvider,
        uriInfo)

    {{/contractDetails}}
{{/contracts}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy