@Override public Furnace getFurnace(ClassLoader loader) { return SimpleContainer.getFurnace(loader); }
public FurnaceClasspathScanner() { furnace = SimpleContainer.getFurnace(FurnaceClasspathScanner.class.getClassLoader()); }
private Furnace getFurnace() { if (furnace == null) this.furnace = SimpleContainer.getFurnace(GraphContextFactory.class.getClassLoader()); return this.furnace; }
private Furnace getFurnace() { if (furnace == null) this.furnace = SimpleContainer.getFurnace(GraphContextFactory.class.getClassLoader()); return this.furnace; }
private AddonRegistry getAddonRegistry() { return SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); }
private AddonRegistry getAddonRegistry() { if (addonRegistry == null) { addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); } return addonRegistry; }
private AddonRegistry getAddonRegistry() { if (registry == null) { Furnace furnace = SimpleContainer.getFurnace(this.getClass().getClassLoader()); this.registry = furnace.getAddonRegistry(); } return registry; }
/** * @return the addonRegistry */ private AddonRegistry getAddonRegistry() { if (addonRegistry == null) { this.addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); } return addonRegistry; }
private Imported<TemplateGenerator> getTemplateGenerators() { if (generators == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); generators = addonRegistry.getServices(TemplateGenerator.class); } return generators; } }
private GitIgnoreConfig getGitIgnoreConfig() { if (gitIgnoreConfig == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); gitIgnoreConfig = addonRegistry.getServices(GitIgnoreConfig.class).get(); } return gitIgnoreConfig; }
private ResourceFactory getResourceFactory() { if (factory == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); factory = addonRegistry.getServices(ResourceFactory.class).get(); } return factory; }
private ResourceFactory getResourceFactory() { if (resourceFactory == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); resourceFactory = addonRegistry.getServices(ResourceFactory.class).get(); } return resourceFactory; }
private ConfigurationFactory getConfigFactory() { if (configFactory == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); configFactory = addonRegistry.getServices(ConfigurationFactory.class).get(); } return configFactory; }
private GitUtils getGitUtils() { if (gitUtils == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); gitUtils = addonRegistry.getServices(GitUtils.class).get(); } return gitUtils; }
private GitIgnoreConfig getIgnoreConfig() { if (config == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); config = addonRegistry.getServices(GitIgnoreConfig.class).get(); } return config; }
private DependencyInstaller getDependencyInstaller() { if (installer == null) { AddonRegistry addonRegistry = SimpleContainer.getFurnace(getClass().getClassLoader()).getAddonRegistry(); installer = addonRegistry.getServices(DependencyInstaller.class).get(); } return installer; }
@Override protected ProjectFactory getProjectFactory() { Furnace furnace = SimpleContainer.getFurnace(this.getClass().getClassLoader()); return furnace.getAddonRegistry().getServices(ProjectFactory.class).get(); }
@Override protected ProjectFactory getProjectFactory() { Furnace furnace = SimpleContainer.getFurnace(this.getClass().getClassLoader()); return furnace.getAddonRegistry().getServices(ProjectFactory.class).get(); } }
public GraphApiCompositeClassLoaderProvider() { this.furnace = SimpleContainer.getFurnace(GraphApiCompositeClassLoaderProvider.class.getClassLoader()); for (Addon addon : this.furnace.getAddonRegistry().getAddons()) { if (addon.getClassLoader() != null && addon.getClassLoader().equals(GraphApiCompositeClassLoaderProvider.class.getClassLoader())) { this.addon = addon; break; } } }
@Override public AddonManager get() { Furnace furnace = SimpleContainer.getFurnace(getClass().getClassLoader()); AddonRegistry addonRegistry = furnace.getAddonRegistry(); AddonDependencyResolver resolver = addonRegistry.getServices(AddonDependencyResolver.class).get(); return new AddonManagerImpl(furnace, resolver, addonRegistry); } }