Register a resource with Guice, and builds the router.
Register a resource with Guice, and builds the router.
Example:
override def configure(): Unit = { bindResource[MyResource] }
The resource to bind.
Set a binding from a high-level data type to the wire representation.
Set a binding from a high-level data type to the wire representation.
Example:
override def configure(): Unit = { bindSchemaType[java.util.Date]( DataSchemaUtil.dataSchemaTypeToPrimitiveDataSchema(DataSchema.Type.LONG)) }
The type to register.
Inherit from this trait to bind resources and schema types.
Naptime builds upon Guice to discover and find all resources in the service, as well as to discover the reverse mappings from high-level class types to their wire representations.