Examples of IServiceTypeManager


Examples of org.pentaho.platform.plugin.services.pluginmgr.servicemgr.IServiceTypeManager

    microPlatform.define( IPluginManager.class, DefaultPluginManager.class, Scope.GLOBAL );
    microPlatform.define( IServiceManager.class, DefaultServiceManager.class, Scope.GLOBAL );
    microPlatform.define( IPluginProvider.class, TstPluginProvider.class );
    microPlatform.define( IThemeManager.class, DefaultThemeManager.class );

    IServiceTypeManager axisManager = new AxisWebServiceManager();
    DefaultServiceManager sm = (DefaultServiceManager) PentahoSystem.get( IServiceManager.class );
    sm.setServiceTypeManagers( Arrays.asList( axisManager ) );

    microPlatform.init();
View Full Code Here

Examples of org.pentaho.platform.plugin.services.pluginmgr.servicemgr.IServiceTypeManager

  DefaultServiceManager serviceManager;

  @Before
  public void init() {
    serviceManager = new DefaultServiceManager();
    IServiceTypeManager gwtHandler = new GwtRpcServiceManager();
    serviceManager.setServiceTypeManagers( Arrays.asList( gwtHandler ) );
  }
View Full Code Here

Examples of org.pentaho.platform.plugin.services.pluginmgr.servicemgr.IServiceTypeManager

    microPlatform.define( IPluginProvider.class, Tst14PluginProvider.class );

    microPlatform.start();

    // register the gwt service handler
    IServiceTypeManager gwtHandler = new GwtRpcServiceManager();
    DefaultServiceManager sm = (DefaultServiceManager) PentahoSystem.get( IServiceManager.class );
    sm.setServiceTypeManagers( Arrays.asList( gwtHandler ) );

    PluginMessageLogger.clear();

    pluginManager.reload();

    // print messages before assert so we can see what went wrong if assert fails
    System.out.println( PluginMessageLogger.prettyPrint() );

    assertEquals( "Errors occurred during webservice registration (see log)", 0, PluginMessageLogger
      .count( "PluginManager.ERR" ) );
    // at this point we know that no errors were logged, but we need to make sure the service was registered
    // with the service manager. We'll use a mock service manager to test this, since the default service manager
    // is a heavy Axis-backed impl, requiring an http server

    IServiceConfig config = gwtHandler.getServiceConfig( "EchoServiceBean" );
    assertNotNull( "The GWT service manager should have a service registered by name 'EchoServiceBean'", config );
    assertEquals( "gwt", config.getServiceType() );
    assertEquals( EchoServiceBean.class, config.getServiceClass() );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.