Tabnine Logo
ScopeImpl.installInternalProvider
Code IndexAdd Tabnine to your IDE (free)

How to use
installInternalProvider
method
in
toothpick.ScopeImpl

Best Java code snippets using toothpick.ScopeImpl.installInternalProvider (Showing top 6 results out of 315)

origin: stephanenicolas/toothpick

/**
 * Install the provider of the class {@code clazz} and name {@code bindingName}
 * in the pool of unbound providers.
 *
 * @param clazz the class for which to install the provider.
 * @param bindingName the name, possibly {@code null}, for which to install the scoped provider.
 * @param internalProvider the internal provider to install.
 * @param <T> the type of {@code clazz}.
 */
private <T> InternalProviderImpl<? extends T> installUnBoundProvider(Class<T> clazz, String bindingName,
  InternalProviderImpl<? extends T> internalProvider) {
 return installInternalProvider(clazz, bindingName, internalProvider, false, false);
}
origin: stephanenicolas/toothpick

/**
 * Install the provider of the class {@code clazz} and name {@code bindingName}
 * in the current scope.
 *
 * @param clazz the class for which to install the scoped provider.
 * @param bindingName the name, possibly {@code null}, for which to install the scoped provider.
 * @param internalProvider the internal provider to install.
 * @param isTestProvider whether or not is a test provider, installed through a Test Module that should override
 *                       existing providers for the same class-bindingname.
 * @param <T> the type of {@code clazz}.
 */
private <T> InternalProviderImpl<? extends T> installBoundProvider(Class<T> clazz, String bindingName,
  InternalProviderImpl<? extends T> internalProvider, boolean isTestProvider) {
 return installInternalProvider(clazz, bindingName, internalProvider, true, isTestProvider);
}
origin: com.github.stephanenicolas/toothpick-runtime

/**
 * Install the provider of the class {@code clazz} and name {@code bindingName}
 * in the pool of unbound providers.
 *
 * @param clazz the class for which to install the provider.
 * @param bindingName the name, possibly {@code null}, for which to install the scoped provider.
 * @param <T> the type of {@code clazz}.
 */
private <T> InternalProviderImpl<? extends T> installUnBoundProvider(Class<T> clazz, String bindingName,
  InternalProviderImpl<? extends T> internalProvider) {
 return installInternalProvider(clazz, bindingName, internalProvider, false);
}
origin: com.github.stephanenicolas/toothpick-runtime

/**
 * Install the provider of the class {@code clazz} and name {@code bindingName}
 * in the current scope.
 *
 * @param clazz the class for which to install the scoped provider.
 * @param bindingName the name, possibly {@code null}, for which to install the scoped provider.
 * @param <T> the type of {@code clazz}.
 */
private <T> InternalProviderImpl<? extends T> installBoundProvider(Class<T> clazz, String bindingName,
  InternalProviderImpl<? extends T> internalProvider) {
 return installInternalProvider(clazz, bindingName, internalProvider, true);
}
origin: com.github.stephanenicolas.toothpick/toothpick-runtime

/**
 * Install the provider of the class {@code clazz} and name {@code bindingName}
 * in the pool of unbound providers.
 *
 * @param clazz the class for which to install the provider.
 * @param bindingName the name, possibly {@code null}, for which to install the scoped provider.
 * @param internalProvider the internal provider to install.
 * @param <T> the type of {@code clazz}.
 */
private <T> InternalProviderImpl<? extends T> installUnBoundProvider(Class<T> clazz, String bindingName,
  InternalProviderImpl<? extends T> internalProvider) {
 return installInternalProvider(clazz, bindingName, internalProvider, false, false);
}
origin: com.github.stephanenicolas.toothpick/toothpick-runtime

/**
 * Install the provider of the class {@code clazz} and name {@code bindingName}
 * in the current scope.
 *
 * @param clazz the class for which to install the scoped provider.
 * @param bindingName the name, possibly {@code null}, for which to install the scoped provider.
 * @param internalProvider the internal provider to install.
 * @param isTestProvider whether or not is a test provider, installed through a Test Module that should override
 *                       existing providers for the same class-bindingname.
 * @param <T> the type of {@code clazz}.
 */
private <T> InternalProviderImpl<? extends T> installBoundProvider(Class<T> clazz, String bindingName,
  InternalProviderImpl<? extends T> internalProvider, boolean isTestProvider) {
 return installInternalProvider(clazz, bindingName, internalProvider, true, isTestProvider);
}
toothpickScopeImplinstallInternalProvider

Javadoc

Installs a provider either in the scope or the pool of unbound providers.

Popular methods of ScopeImpl

  • <init>
  • installModules
  • lookupProvider
    The core of Toothpick internals : the provider lookup. It will look for a scoped provider, bubbling
  • toProvider
  • createInternalProvider
  • getBoundProvider
    Obtains the provider of the class clazz and name bindingName, if any. The returned provider will be
  • getInstance
  • getInternalProvider
    Obtains the provider of the class clazz and name bindingName. The returned provider can either be bo
  • getLazy
  • getName
  • getProvider
  • getRootScope
  • getProvider,
  • getRootScope,
  • getUnBoundProvider,
  • installBoundProvider,
  • installModule,
  • installNamedProvider,
  • installScopedProvider,
  • installUnBoundProvider,
  • installUnNamedProvider

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JButton (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now