server.src.GeneratedContractsResourceImpl.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web3j-openapi-codegen Show documentation
Show all versions of web3j-openapi-codegen Show documentation
web3j-openapi project code generators
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}}
}