use of io.cdap.cdap.metadata.PreferencesFetcher in project cdap by caskdata.
the class SystemAppTask method buildTaskSystemAppContext.
private SystemAppTaskContext buildTaskSystemAppContext(Injector injector, String systemAppNamespace, ArtifactId artifactId, ClassLoader artifactClassLoader) {
PreferencesFetcher preferencesFetcher = injector.getInstance(PreferencesFetcher.class);
PluginFinder pluginFinder = injector.getInstance(PluginFinder.class);
SecureStore secureStore = injector.getInstance(SecureStore.class);
ArtifactManagerFactory artifactManagerFactory = injector.getInstance(ArtifactManagerFactory.class);
RemoteClientFactory remoteClientFactory = injector.getInstance(RemoteClientFactory.class);
return new DefaultSystemAppTaskContext(injector.getInstance(CConfiguration.class), preferencesFetcher, pluginFinder, secureStore, systemAppNamespace, artifactId, artifactClassLoader, artifactManagerFactory, Constants.Service.TASK_WORKER, remoteClientFactory);
}
Aggregations