Search in sources :

Example 1 with DefaultPluginManager

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();
}
Also used : StandaloneSession(org.pentaho.platform.engine.core.system.StandaloneSession) MicroPlatform(org.pentaho.test.platform.engine.core.MicroPlatform) File(java.io.File) DefaultPluginManager(org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager) FileSystemBackedUnifiedRepository(org.pentaho.platform.repository2.unified.fs.FileSystemBackedUnifiedRepository) IUnifiedRepository(org.pentaho.platform.api.repository2.unified.IUnifiedRepository) Before(org.junit.Before)

Aggregations

File (java.io.File)1 Before (org.junit.Before)1 IUnifiedRepository (org.pentaho.platform.api.repository2.unified.IUnifiedRepository)1 StandaloneSession (org.pentaho.platform.engine.core.system.StandaloneSession)1 DefaultPluginManager (org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager)1 FileSystemBackedUnifiedRepository (org.pentaho.platform.repository2.unified.fs.FileSystemBackedUnifiedRepository)1 MicroPlatform (org.pentaho.test.platform.engine.core.MicroPlatform)1