server.src.contractImpl.EventsResourceImpl.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.{{lowerCaseContractName}}
{{#eventImports}}
{{import}}
{{/eventImports}}
import {{packageName}}.core.{{lowerCaseContractName}}.{{capitalizedContractName}}Events
import {{packageName}}.wrappers.{{capitalizedContractName}}
import org.web3j.openapi.server.SubResourceImpl
import javax.inject.Inject
import javax.ws.rs.core.Context
import org.glassfish.jersey.server.ExtendedUriInfo
class {{capitalizedContractName}}EventsImpl(
private val {{decapitalizedContractName}} : {{capitalizedContractName}},
uriInfo : ExtendedUriInfo
) : {{capitalizedContractName}}Events, SubResourceImpl(uriInfo){
{{#EventResource}}
override val {{decapitalizedName}}Events: {{capitalizedName}}EventResourceImpl = {{capitalizedName}}EventResourceImpl({{decapitalizedContractName}})
{{/EventResource}}
}