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

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


      define( IPluginProvider.class, SystemPathXmlPluginProvider.class, Scope.GLOBAL );
      define( IPluginManager.class, DefaultPluginManager.class, Scope.GLOBAL );
      define( IServiceManager.class, DefaultServiceManager.class, Scope.GLOBAL );
      define( IPluginResourceLoader.class, PluginResourceLoader.class, Scope.GLOBAL );
    }
    addLifecycleListener( new PluginAdapter() );

  }
View Full Code Here


    microPlatform.define( IPluginProvider.class, SystemPathXmlPluginProvider.class );
    microPlatform.define( IServiceManager.class, DefaultServiceManager.class );

    session = new StandaloneSession();

    pluginAdapter = new PluginAdapter();

    microPlatform.addAdminAction( pluginAdapter );

    microPlatform.init();
  }
View Full Code Here

  public void testPluginAdapterViaPublisherAPI() throws Exception {
    startTest();

    IPentahoSession session = new StandaloneSession( "test user" ); //$NON-NLS-1$

    PluginAdapter mgr = new PluginAdapter();
    assertTrue( mgr instanceof IPentahoPublisher );
    IPentahoPublisher publisher = (IPentahoPublisher) mgr;

    assertEquals( Messages.getInstance().getString( "PluginAdapter.USER_PLUGIN_MANAGER" ), publisher.getName() ); //$NON-NLS-1$
    assertNotSame( "!PluginAdapter.USER_PLUGIN_MANAGER!", publisher.getName() ); //$NON-NLS-1$
View Full Code Here

  public void testPluginAdapterViaSystemListenerAPI() throws Exception {
    startTest();

    IPentahoSession session = new StandaloneSession( "test user" ); //$NON-NLS-1$

    PluginAdapter mgr = new PluginAdapter();
    assertTrue( mgr instanceof IPentahoSystemListener );

    IPentahoSystemListener listener = (IPentahoSystemListener) mgr;

    assertFalse( listener.startup( session ) );
View Full Code Here

TOP

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

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.