abstract class TwitterPrivateModule extends PrivateModule with TwitterBaseModule with ScalaPrivateModule
A module whose configuration information is hidden from its environment by default. Only bindings that are explicitly exposed will be available to other modules and to the users of the injector. This module may expose the bindings it creates and the bindings of the modules it installs.
- Note
- Calling com.google.inject.PrivateModule#install in the configure() method is not supported. Please set TwitterBaseModule.modules (or TwitterBaseModule.javaModules) to a non-empty list instead. 
- See also
- Alphabetic
- By Inheritance
- TwitterPrivateModule
- ScalaPrivateModule
- InternalModule
- TwitterBaseModule
- TwitterModuleLifecycle
- Logging
- TwitterModuleFlags
- PrivateModule
- Module
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-  new TwitterPrivateModule()
Type Members
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
 
-   final  def addError(arg0: Message): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def addError(arg0: Throwable): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def addError(arg0: String, arg1: <repeated...>[AnyRef]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
- Annotations
- @transient()
 
-    def annotatedWith[A <: Annotation](implicit arg0: ClassTag[A]): Matcher[AnnotatedElement]- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def bind[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): BindingBuilder[T]- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-   final  def bind[T <: AnyRef](arg0: Class[T]): AnnotatedBindingBuilder[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def bind[T <: AnyRef](arg0: TypeLiteral[T]): AnnotatedBindingBuilder[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def bind[T <: AnyRef](arg0: Key[T]): LinkedBindingBuilder[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def bindConstant(): AnnotatedConstantBindingBuilder- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def bindInterceptor[I <: MethodInterceptor](classMatcher: Matcher[_ >: Class[_]], methodMatcher: Matcher[_ >: AnnotatedElement])(implicit arg0: ClassTag[I]): Unit- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-   final  def bindInterceptor(arg0: Matcher[_ >: Class[_ <: AnyRef] <: AnyRef], arg1: Matcher[_ >: Method <: AnyRef], arg2: <repeated...>[MethodInterceptor]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
- Annotations
- @transient()
 
-    def bindListener(arg0: Matcher[_ >: Binding[_ <: AnyRef] <: AnyRef], arg1: <repeated...>[ProvisionListener]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
- Annotations
- @transient()
 
-    def bindListener(arg0: Matcher[_ >: TypeLiteral[_ <: AnyRef] <: AnyRef], arg1: TypeListener): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def bindScope[T <: Annotation](scope: Scope)(implicit arg0: ClassTag[T]): Unit- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-   final  def bindScope(arg0: Class[_ <: Annotation], arg1: Scope): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def binder(): PrivateBinder- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def binderAccess: PrivateBinder- Attributes
- protected[this]
- Definition Classes
- ScalaPrivateModule → InternalModule
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
-    def configure(): UnitConfigures a com.google.inject.Binder via the exposed methods. Configures a com.google.inject.Binder via the exposed methods. A default implementation is provided such that extensions using only @Provider-annotated methods do not need to implement an empty TwitterModule.configure() method.- Attributes
- protected
- Definition Classes
- TwitterPrivateModule → PrivateModule
- See also
- com.google.inject.PrivateModule#configure 
 
-   final  def configure(arg0: Binder): Unit- Definition Classes
- PrivateModule → Module
 
-   final  def convertToTypes(arg0: Matcher[_ >: TypeLiteral[_ <: AnyRef] <: AnyRef], arg1: TypeConverter): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def createFlag[T](name: String, default: T, help: String, flaggable: Flaggable[T]): Flag[T]A Java-friendly method for creating a named Flag. A Java-friendly method for creating a named Flag. - name
- the name of the Flag. 
- default
- a default value for the Flag when no value is given as an application argument. 
- help
- the help text explaining the purpose of the Flag. 
- returns
- the created Flag. 
 - Definition Classes
- TwitterModuleFlags
 
-   final  def createMandatoryFlag[T](name: String, help: String, usage: String, flaggable: Flaggable[T]): Flag[T]A Java-friendly way to create a "mandatory" Flag. A Java-friendly way to create a "mandatory" Flag. "Mandatory" flags MUST have a value provided as an application argument (as they have no default value to be used). - name
- the name of the Flag. 
- help
- the help text explaining the purpose of the Flag. 
- usage
- a string describing the type of the Flag, i.e.: Integer. 
- returns
- the created Flag. 
 - Definition Classes
- TwitterModuleFlags
 
-   final  def currentStage(): Stage- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def debug(marker: Marker, message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def debug(message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def debug(marker: Marker, message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def debug(message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def debugResult[T](message: => String)(fn: => T): T- Attributes
- protected[this]
- Definition Classes
- Logging
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def error(marker: Marker, message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def error(message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def error(marker: Marker, message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def error(message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def errorResult[T](message: => String)(fn: => T): T- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def expose[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): ElementBuilder[T]- Attributes
- protected[this]
- Definition Classes
- ScalaPrivateModule
 
-   final  def expose(arg0: TypeLiteral[_ <: AnyRef]): AnnotatedElementBuilder- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def expose(arg0: Class[_ <: AnyRef]): AnnotatedElementBuilder- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def expose[T <: AnyRef](arg0: Key[T]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def failfastOnFlagsNotParsed: BooleanThis is akin to the c.t.inject.app.App#failfastOnFlagsNotParsedand serves a similar purpose but for new com.twitter.app.Flag instances created in this TwitterModule.This is akin to the c.t.inject.app.App#failfastOnFlagsNotParsedand serves a similar purpose but for new com.twitter.app.Flag instances created in this TwitterModule. The value is 'true' by default. This is to ensure that the value of a com.twitter.app.Flag instance created in this TwitterModule cannot be incorrectly accessed before the application has parsed any passed command line input. This mirrors the framework default forcom.twitter.inject.app.App#failfastOnFlagsNotParsedfor Flag instances created within the application container.- returns
- a Boolean indicating if com.twitter.app.Flag instances created in this TwitterModule should be set with com.twitter.app.Flag.failFastUntilParsed set to 'true' or 'false'. Default: 'true'. 
 - Attributes
- protected[this]
- Definition Classes
- TwitterModuleFlags
- Note
- This value SHOULD NOT be changed to 'false' without a very good reason. 
 
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
 
-   final  def flag[T](name: String, help: String)(implicit arg0: Flaggable[T], arg1: Manifest[T]): Flag[T]Create a "mandatory" flag and add it to this Module's flags list."Mandatory" flags MUST have a value provided as an application argument (as they have no default value to be used). Create a "mandatory" flag and add it to this Module's flags list."Mandatory" flags MUST have a value provided as an application argument (as they have no default value to be used). - T
- must be a Flaggable type. 
- name
- the name of the Flag. 
- help
- the help text explaining the purpose of the Flag. 
- returns
- the created Flag. 
 - Definition Classes
- TwitterModuleFlags
- Note
- Java users: see the more Java-friendly createFlag or createMandatoryFlag. 
 
-   final  def flag[T](name: String, default: T, help: String)(implicit arg0: Flaggable[T]): Flag[T]Create a Flag and add it to this Module's flags list. Create a Flag and add it to this Module's flags list. - T
- must be a Flaggable type. 
- name
- the name of the Flag. 
- default
- a default value for the Flag when no value is given as an application argument. 
- help
- the help text explaining the purpose of the Flag. 
- returns
- the created Flag. 
 - Definition Classes
- TwitterModuleFlags
- Note
- Java users: see the more Java-friendly createFlag or createMandatoryFlag. 
 
-    val flags: ArrayBuffer[Flag[_]]- Attributes
- protected[inject]
- Definition Classes
- TwitterModuleFlags
 
-    def frameworkModules: Seq[Module]Additional framework modules to be composed into this module. Additional framework modules to be composed into this module. - Attributes
- protected[inject]
- Definition Classes
- TwitterBaseModule
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def getMembersInjector[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): MembersInjector[T]- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-    def getMembersInjector[T <: AnyRef](arg0: TypeLiteral[T]): MembersInjector[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def getMembersInjector[T <: AnyRef](arg0: Class[T]): MembersInjector[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def getProvider[T](implicit arg0: ClassTag[T]): Provider[T]- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-   final  def getProvider[T <: AnyRef](arg0: Class[T]): Provider[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def getProvider[T <: AnyRef](arg0: Key[T]): Provider[T]- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
-    def info(marker: Marker, message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def info(message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def info(marker: Marker, message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def info(message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def infoResult[T](message: => String)(fn: => T): T- Attributes
- protected[this]
- Definition Classes
- Logging
 
-   final  def install(arg0: Module): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def isDebugEnabled(marker: Marker): Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isDebugEnabled: Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isErrorEnabled(marker: Marker): Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isErrorEnabled: Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isInfoEnabled(marker: Marker): Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isInfoEnabled: Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-    def isTraceEnabled(marker: Marker): Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isTraceEnabled: Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isWarnEnabled(marker: Marker): Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def isWarnEnabled: Boolean- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def javaModules: Collection[Module]Additional modules to be composed into this module from Java Additional modules to be composed into this module from Java - Attributes
- protected[inject]
- Definition Classes
- TwitterBaseModule
 
-   final  def logger: Logger- Attributes
- protected[this]
- Definition Classes
- Logging
 
-   final  def loggerName: String- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def modules: Seq[Module]Additional modules to be composed into this module. Additional modules to be composed into this module. This list of modules is generally used instead of the TwitterModule.install method to properly support the TwitterModuleLifecycle for TwitterModule instances. - Attributes
- protected[inject]
- Definition Classes
- TwitterBaseModule
- Note
- Module) can still be used for non-TwitterModule 1 instances, and is sometimes preferred due to ,- installbeing deferred until after flag parsing occurs.- Java users should prefer javaModules. 
 
-   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 onExit(f: => Unit): UnitCollects functions over a com.twitter.util.Closables. Collects functions over a com.twitter.util.Closables. These functions will be passed to the application onExitfunction to be executed on graceful shutdown of the application.- f
- A Function0 which returns Unit. It is expected that this function encapsulates awaiting on a com.twitter.util.Closable that the application would like to ensure is closed upon graceful shutdown. - onExit { val closable = ... Await.result( closable.close(after: Duration), timeout: Duration) }
 - Attributes
- protected
- Definition Classes
- TwitterModuleLifecycle
- Note
- It is expected that the passed function is a function over a com.twitter.util.Closable. 
- See also
- => Unit) 
 
-   final  def requestInjection(arg0: AnyRef): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def requestStaticInjection[T]()(implicit arg0: ClassTag[T]): Unit- Attributes
- protected[this]
- Definition Classes
- InternalModule
 
-   final  def requestStaticInjection(arg0: <repeated...>[Class[_ <: AnyRef]]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
- Annotations
- @transient()
 
-   final  def requireBinding(arg0: Class[_ <: AnyRef]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-   final  def requireBinding(arg0: Key[_ <: AnyRef]): Unit- Attributes
- protected[google.inject]
- Definition Classes
- PrivateModule
 
-    def singletonPostWarmupComplete(injector: Injector): UnitInvoke after external ports are bound and any clients are resolved Invoke after external ports are bound and any clients are resolved This method should only get singleton instances from the injector. - Attributes
- protected[inject]
- Definition Classes
- TwitterModuleLifecycle
 
-    def singletonShutdown(injector: Injector): UnitInvoked on graceful shutdown of the application. Invoked on graceful shutdown of the application. This method should only get singleton instances from the injector. - Attributes
- protected[inject]
- Definition Classes
- TwitterModuleLifecycle
 
-    def singletonStartup(injector: Injector): UnitInvoked after the injector is started. Invoked after the injector is started. This method should only get singleton instances from the injector. - Attributes
- protected[inject]
- Definition Classes
- TwitterModuleLifecycle
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-    def trace(marker: Marker, message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def trace(message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def trace(marker: Marker, message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def trace(message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def traceResult[T](message: => String)(fn: => T): T- Attributes
- protected[this]
- Definition Classes
- Logging
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-    def warn(marker: Marker, message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def warn(message: => Any, cause: Throwable): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def warn(marker: Marker, message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def warn(message: => Any): Unit- Attributes
- protected[this]
- Definition Classes
- Logging
 
-    def warnResult[T](message: => String)(fn: => T): T- Attributes
- protected[this]
- Definition Classes
- Logging