Package org.pentaho.platform.plugin.services.pluginmgr

Examples of org.pentaho.platform.plugin.services.pluginmgr.PluginResourceLoader


  private PluginClassLoader classLoader;

  @Before
  public void init() throws ClassNotFoundException {
    resLoader = new PluginResourceLoader();
    classLoader =
        new PluginClassLoader( new File( "./test-res/PluginResourceLoaderTest" ), getClass().getClassLoader() );
    pluginClass = classLoader.loadClass( "PluginResLoaderDummyClass" );
  }
View Full Code Here


  @Before
  public void beforeTest() throws Exception {
    repositoryBase.setUp();
    repositoryBase.getMp().define( IPluginManager.class, DefaultPluginManager.class, Scope.GLOBAL );
    repositoryBase.getMp().defineInstance( IPluginResourceLoader.class, new PluginResourceLoader() {
      protected PluginClassLoader getOverrideClassloader() {
        return new PluginClassLoader( new File( "test-res/PluginResourceTest/system/test-plugin" ), this );
      }
    } );
    repositoryBase.getMp().define( IPluginProvider.class, TestPlugin.class, Scope.GLOBAL );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.plugin.services.pluginmgr.PluginResourceLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.