Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.IServiceConfig


  public void unloadServices() throws AxisFault {
    Set<String> keys = services.keySet();
    List<String> removed = new ArrayList<String>();
    // iterate through the list of web service wrappers
    for ( String key : keys ) {
      IServiceConfig wrapper = services.get( key );

      // use the service name to remove them from the Axis system
      String serviceName = wrapper.getServiceClass().getSimpleName();
      axisConfig.removeService( serviceName );
      // build a list of the ones removed
      removed.add( serviceName );
    }
    // now remove the wrappers from the services list
View Full Code Here


   *          StringBuilder to write content to
   */
  protected void getTitleSection( AxisService axisService, AxisConfiguration axisConfiguration, StringBuilder sb ) {

    // get the wrapper for the web service so we can get the localized title and description
    IServiceConfig wsDef =
        AxisUtil
            .getSourceDefinition( axisService, (SystemSolutionAxisConfigurator) axisConfiguration.getConfigurator() );

    sb.append( "<table>\n<tr>\n<td colspan=\"2\"><h2>" ).append( wsDef.getTitle() ).append(
      "</h2></td></tr>\n<tr><td>" ); //$NON-NLS-1$ //$NON-NLS-2$

    String serviceDescription = axisService.getDocumentation();
    if ( serviceDescription == null || "".equals( serviceDescription ) ) { //$NON-NLS-1$
      serviceDescription = Messages.getInstance().getString( "WebServicePlugin.USER_NO_DESCRIPTION" ); //$NON-NLS-1$
View Full Code Here

  @Test
  public void testGetServiceConfig() throws ServiceException {
    testServiceRegistration();

    IServiceConfig config = serviceManager.getServiceConfig( "gwt", "testId" );
    assertNotNull( config );
    assertEquals( "testId", config.getId() );
    assertEquals( EchoServiceBean.class, config.getServiceClass() );
    assertEquals( "gwt", config.getServiceType() );
  }
View Full Code Here

      .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

Related Classes of org.pentaho.platform.api.engine.IServiceConfig

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.