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

How to use
getLazy
method
in
toothpick.ScopeImpl

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

origin: stephanenicolas/toothpick

@Override
public <T> Lazy<T> getLazy(Class<T> clazz) {
 return getLazy(clazz, null);
}
origin: stephanenicolas/toothpick

@Test(expected = IllegalStateException.class)
public void getLazy_shouldFail_whenScopeIsClosed() {
 //GIVEN
 ScopeImpl scope = new ScopeImpl("");
 //WHEN
 scope.close();
 scope.getLazy(Foo.class);
 //THEN
}
origin: stephanenicolas/toothpick

@Test(expected = IllegalStateException.class)
public void lazyGet_shouldFail_whenScopeIsClosed_andThereAreNoDependencies() {
 //GIVEN
 ScopeImpl scope = new ScopeImpl("");
 Lazy<Bar> lazy = scope.getLazy(Bar.class);
 //WHEN
 scope.close();
 lazy.get();
 //THEN
}
origin: stephanenicolas/toothpick

@Test(expected = IllegalStateException.class)
public void lazyGet_shouldFail_whenScopeIsClosed() {
 //GIVEN
 ScopeImpl scope = new ScopeImpl("");
 Lazy<Foo> lazy = scope.getLazy(Foo.class);
 //WHEN
 scope.close();
 lazy.get();
 //THEN
}
origin: com.github.stephanenicolas.toothpick/toothpick-runtime

@Override
public <T> Lazy<T> getLazy(Class<T> clazz) {
 return getLazy(clazz, null);
}
toothpickScopeImplgetLazy

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
  • getName
  • getProvider
  • getRootScope
  • getUnBoundProvider
    Obtains the provider of the class clazz and name bindingName, if any. The returned provider will bel
  • getRootScope,
  • getUnBoundProvider,
  • installBoundProvider,
  • installInternalProvider,
  • installModule,
  • installNamedProvider,
  • installScopedProvider,
  • installUnBoundProvider,
  • installUnNamedProvider

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best plugins for Eclipse
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