Search in sources :

Example 1 with ArtifactManagerFactory

use of io.cdap.cdap.internal.app.runtime.artifact.ArtifactManagerFactory 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);
}
Also used : RemoteClientFactory(io.cdap.cdap.common.internal.remote.RemoteClientFactory) PluginFinder(io.cdap.cdap.internal.app.runtime.artifact.PluginFinder) ArtifactManagerFactory(io.cdap.cdap.internal.app.runtime.artifact.ArtifactManagerFactory) PreferencesFetcher(io.cdap.cdap.metadata.PreferencesFetcher) SecureStore(io.cdap.cdap.api.security.store.SecureStore) CConfiguration(io.cdap.cdap.common.conf.CConfiguration)

Aggregations

SecureStore (io.cdap.cdap.api.security.store.SecureStore)1 CConfiguration (io.cdap.cdap.common.conf.CConfiguration)1 RemoteClientFactory (io.cdap.cdap.common.internal.remote.RemoteClientFactory)1 ArtifactManagerFactory (io.cdap.cdap.internal.app.runtime.artifact.ArtifactManagerFactory)1 PluginFinder (io.cdap.cdap.internal.app.runtime.artifact.PluginFinder)1 PreferencesFetcher (io.cdap.cdap.metadata.PreferencesFetcher)1