use of org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager in project pentaho-platform by pentaho.
the class DefaultPluginManagerIT method init0.
@Before
public void init0() {
PentahoSystem.clearObjectFactory();
microPlatform = new MicroPlatform(getSolutionPath());
microPlatform.define(ISolutionEngine.class, SolutionEngine.class);
microPlatform.define(IPluginProvider.class, SystemPathXmlPluginProvider.class);
microPlatform.define(IServiceManager.class, DefaultServiceManager.class, Scope.GLOBAL);
microPlatform.define(IUnifiedRepository.class, FileSystemBackedUnifiedRepository.class, Scope.GLOBAL);
FileSystemBackedUnifiedRepository repo = (FileSystemBackedUnifiedRepository) PentahoSystem.get(IUnifiedRepository.class);
repo.setRootDir(new File(getSolutionPath()));
session = new StandaloneSession();
pluginManager = new DefaultPluginManager();
}
Aggregations