public class SystemDatasetInstantiatorFactory extends Object
SystemDatasetInstantiator instances for use in system contexts. This is used instead of directly
creating a SystemDatasetInstantiator to ensure that the same temporary base directory is used,
and so that the factory can be injected directly instead of injecting a LocationFactory, DatasetFramework,
and CConfiguration object everywhere it is used.| Constructor and Description |
|---|
SystemDatasetInstantiatorFactory(LocationFactory locationFactory,
DatasetFramework datasetFramework,
CConfiguration cConf) |
| Modifier and Type | Method and Description |
|---|---|
SystemDatasetInstantiator |
create()
Create a
SystemDatasetInstantiator using the system classloader as the parent classloader. |
SystemDatasetInstantiator |
create(ClassLoader parentClassLoader)
Create a
SystemDatasetInstantiator that uses the given classloader as the parent when instantiating
datasets. |
@Inject public SystemDatasetInstantiatorFactory(LocationFactory locationFactory, DatasetFramework datasetFramework, CConfiguration cConf)
public SystemDatasetInstantiator create()
SystemDatasetInstantiator using the system classloader as the parent classloader.SystemDatasetInstantiator using the system classloader as the parent classloaderpublic SystemDatasetInstantiator create(@Nullable ClassLoader parentClassLoader)
SystemDatasetInstantiator that uses the given classloader as the parent when instantiating
datasets.parentClassLoader - the parent classloader to use when instantiating datasets. If null, the system
classloader will be usedSystemDatasetInstantiator using the given classloader as the parent classloaderCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.