trait NaptimeModule extends BinderExposer with ScalaModule
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.
- Alphabetic
- By Inheritance
- NaptimeModule
- ScalaModule
- InternalModule
- BinderExposer
- AbstractModule
- Module
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
BindingBuilder[T] extends ScalaAnnotatedBindingBuilder[T]
- Definition Classes
- InternalModule
Abstract Value Members
-
abstract
def
configure(): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addError(arg0: Message): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
addError(arg0: Throwable): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
addError(arg0: String, arg1: <repeated...>[AnyRef]): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
- Annotations
- @transient()
-
def
annotatedWith[A <: Annotation](implicit arg0: Manifest[A]): Matcher[AnnotatedElement]
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bind[T](implicit arg0: Manifest[T]): BindingBuilder[T]
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
def
bind[T](arg0: Class[T]): AnnotatedBindingBuilder[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
bind[T](arg0: TypeLiteral[T]): AnnotatedBindingBuilder[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
bind[T](arg0: Key[T]): LinkedBindingBuilder[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
bindConstant(): AnnotatedConstantBindingBuilder
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
bindInterceptor[I <: MethodInterceptor](classMatcher: Matcher[_ >: Class[_]], methodMatcher: Matcher[_ >: AnnotatedElement])(implicit arg0: Manifest[I]): Unit
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
def
bindInterceptor(arg0: Matcher[_ >: Class[_]], arg1: Matcher[_ >: Method], arg2: <repeated...>[MethodInterceptor]): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
- Annotations
- @transient()
-
def
bindListener(arg0: Matcher[_ >: Binding[_]], arg1: <repeated...>[ProvisionListener]): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
- Annotations
- @transient()
-
def
bindListener(arg0: Matcher[_ >: TypeLiteral[_]], arg1: TypeListener): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
macro
def
bindResource[ResourceClass <: CollectionResource[_, _, _]]: Unit
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] }
- ResourceClass
The resource to bind.
- Attributes
- protected[this]
-
def
bindResourceRouterBuilder(resourceRouterBuilder: ResourceRouterBuilder): Unit
- Attributes
- protected[this]
-
def
bindSchemaType[Type](schema: DataSchema)(implicit ct: ClassTag[Type]): Unit
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)) }
- Type
The type to register.
- Attributes
- protected[this]
-
def
bindScope[T <: Annotation](scope: Scope)(implicit arg0: Manifest[T]): Unit
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
def
bindScope(arg0: Class[_ <: Annotation], arg1: Scope): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
binder(): Binder
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
binderAccess: Binder
- Attributes
- protected[this]
- Definition Classes
- ScalaModule → InternalModule
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
configure(arg0: Binder): Unit
- Definition Classes
- AbstractModule → Module
-
def
convertToTypes(arg0: Matcher[_ >: TypeLiteral[_]], arg1: TypeConverter): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
currentStage(): Stage
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exposedBinder(): Binder
- Attributes
- protected[this]
- Definition Classes
- BinderExposer
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getMembersInjector[T](implicit arg0: Manifest[T]): MembersInjector[T]
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
def
getMembersInjector[T](arg0: TypeLiteral[T]): MembersInjector[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
getMembersInjector[T](arg0: Class[T]): MembersInjector[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
getProvider[T](implicit arg0: Manifest[T]): Provider[T]
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
def
getProvider[T](arg0: Class[T]): Provider[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
getProvider[T](arg0: Key[T]): Provider[T]
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
install(arg0: Module): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
requestInjection(arg0: Any): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
requestStaticInjection[T]()(implicit arg0: Manifest[T]): Unit
- Attributes
- protected[this]
- Definition Classes
- InternalModule
-
def
requestStaticInjection(arg0: <repeated...>[Class[_]]): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
- Annotations
- @transient()
-
def
requireBinding(arg0: Class[_]): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
def
requireBinding(arg0: Key[_]): Unit
- Attributes
- protected[inject]
- Definition Classes
- AbstractModule
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()