Package org.pentaho.platform.api.engine

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


    if ( serviceInstance == null ) {
      try {
        serviceInstance = serviceClassMap.get( serviceId ).newInstance();
        serviceInstanceMap.put( serviceId, serviceInstance );
      } catch ( InstantiationException e ) {
        throw new ServiceException( e );
      } catch ( IllegalAccessException e ) {
        throw new ServiceException( e );
      }
    }
    return serviceInstance;
  }
View Full Code Here


    String type = config.getServiceType();
    IServiceTypeManager mgr = serviceManagerMap.get( type );
    if ( mgr == null ) {
      String availableTypes =
          StringUtils.join( serviceManagerMap.keySet().iterator(), Messages.getInstance().getString( "," ) ); //$NON-NLS-1$
      throw new ServiceException(
          Messages
              .getInstance()
              .getErrorString(
                "DefaultServiceManager.ERROR_0002_NO_SERVICE_MANAGER_FOR_TYPE", config.getId(), type.toString(),
                availableTypes ) ); //$NON-NLS-1$
View Full Code Here

TOP

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

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.