@Test void checkDefaultInstances() { assertEquals(DocumentTools.INSTANCE, injector.getInstance(DocumentTools.class), "DocumentTools is not the default"); assertEquals(JsonTools.INSTANCE, injector.getInstance(JsonTools.class), "JsonTools is not the default"); assertEquals(DocumentFileUtils.INSTANCE, injector.getInstance(DocumentFileUtils.class), "DocumentFileUtils is not the default"); assertEquals(FileUtils.INSTANCE, injector.getInstance(FileUtils.class), "FileUtils is not the default"); assertNotNull(injector.getInstance(IdGenerator.class), "IdGenerator is not available"); assertNotNull(injector.getInstance(SSLSocketFactory.class), "SSLSocketFactory is not available"); assertNotNull(injector.getInstance(CertificateFactory.class), "CertificateFactory is not available"); assertNotNull(injector.getInstance(KeystoreHelper.class), "KeystoreHelper is not available"); assertNotNull(injector.getInstance(EnvironmentBundleCreator.class), "EnvironmentBundleCreator is not available"); assertNotNull(injector.getInstance(EnvironmentBundleBuilder.class), "EnvironmentBundleBuilder is not available"); assertNotNull(injector.getInstance(EnvironmentConfigurationUtils.class), "EnvironmentConfigurationUtils is not available"); assertNotNull(injector.getInstance(FullBundleCreator.class), "FullBundleCreator is not available"); }
public static <T> T getInstance(Class<T> serviceClass) { return getInjector().getInstance(serviceClass); }
InjectionRegistry extends AbstractModule { public static <T> T getInstance(Class<T> serviceClass) { return getInjector().getInstance(serviceClass); } }
InjectionRegistry extends AbstractModule { public static <T> T getInstance(Class<T> serviceClass) { return getInjector().getInstance(serviceClass); } private  InjectionRegistry(); }
InjectionRegistry extends AbstractModule { public static <T> T getInstance(Class<T> serviceClass) { return getInjector().getInstance(serviceClass); } private  InjectionRegistry(); static Injector getInjector(); static T getInstance(Class<T> serviceClass); }
InjectionRegistry extends AbstractModule { public static <T> T getInstance(Class<T> serviceClass) { return getInjector().getInstance(serviceClass); } private  InjectionRegistry(); static Injector getInjector(); static T getInstance(Class<T> serviceClass);  }