Package com.cloudloop.config.exceptions

Examples of com.cloudloop.config.exceptions.CouldNotCreateProviderException


    _client.setConnectionTimeOut( connectionTimeout );
      }
  }
  else
  {
      throw new CouldNotCreateProviderException(
        "Store config not complete" );
  }
  boolean loggedin = false;
  try
  {
View Full Code Here


              _requestExecutor,
              providerConfig
                .getProperties( ) );
          break;
      default:
          throw new CouldNotCreateProviderException(
            "Unsupported provider type, '"
            + providerConfig.getProviderType( ) + "'." );
        }
    }
    catch ( ClassNotFoundException e1 )
    {
        throw new CouldNotCreateProviderException(
          "Could not instantiate provider '"
          + providerConfig.getName( )
          + "' because no class of type '"
          + providerConfig.getImplConfig( ).getImpl( )
          + "' exists." );
    }
    catch ( NoSuchMethodException e2 )
    {
        throw new CouldNotCreateProviderException(
          "Invalid constructor on class '"
          + providerConfig.getImplConfig( ).getImpl( )
          + "'." );
    }
    catch ( Throwable e )
    {
        throw new CouldNotCreateProviderException( e );
    }
   
    _registeredProviders.put( providerConfig.getName( ), provider );
    return provider;
    }
View Full Code Here

      ProviderConfig providerConfig =
        CloudloopConfigLoader.extractProviderConfig( _config, providerName, _providerFactory );
    CloudProvider provider = _providerFactory.createProvider( providerConfig );
    if ( !( provider instanceof CloudStore ) )
    {
        throw new CouldNotCreateProviderException( "Provider '" + providerName
          + "' is not configured as a CloudStore." );
    }
   
    return (CloudStore) provider;
    }
View Full Code Here

TOP

Related Classes of com.cloudloop.config.exceptions.CouldNotCreateProviderException

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.