Package com.cloudloop

Examples of com.cloudloop.ProviderFactory


  }


  private void printConfig( PrintWriter out , CloudloopConfig config )
  {
    ProviderFactory factory = CliSession.getSession( ).getCloudloop( ).getProviderFactory( );
    out.println( );
    if (CliSession.getSession( ).getCloudloop( ) == null)
    {
      if (factory.getAvailableAdapterConfigs( ).size( ) > 0)
      {
        out.println( "Available adapters:" );
        out.println( );
        for (AdapterConfig providerType : factory
            .getAvailableAdapterConfigs( ))
        {
          // TODO: Make this part of the toString() method on
          // providerType?
          out.println( "----------------" );
View Full Code Here


   
    writer.println("Please choose a provider to configure:");

    List<String> providerList = new ArrayList<String>();
    CloudloopConfig currentConfig = parent.getSession( ).getCurrentConfig( );
    ProviderFactory factory = parent.getSession( ).getProviderFactory( );
    if ( currentConfig == null )
    {
      currentConfig = new CloudloopConfig();
      parent.getSession( ).setCurrentConfig( currentConfig );
    }
View Full Code Here

  private void setupNewProvider( ConfigurationWorkflow parent, CloudloopConfig config , PrintWriter writer ,
      BufferedReader reader , PrintWriter error , ConfigurationWorkflowElementOutput output )
  {
    // choose adapter
    List<String> adapters = new ArrayList<String>();
    ProviderFactory factory = parent.getSession( ).getProviderFactory( );
    List<AdapterConfig> adapterConfigs = factory.getAvailableAdapterConfigs( );
    for ( AdapterConfig cfg : adapterConfigs )
    {
      adapters.add( cfg.getAdapterName( ) + " [" + cfg.getImpl( ) + "]" );
    }
   
View Full Code Here

 
 
  private void editProperties( ConfigurationWorkflow parent, ConfigurationWorkflowElementOutput output, CloudloopConfig config ,
      Store provider, PrintWriter writer, BufferedReader reader, PrintWriter error )
  { 
    ProviderFactory factory = parent.getSession( ).getProviderFactory( );
    AdapterConfig adapterCfg = factory.getAdapterConfig( provider.getAdapter( ) );
    if ( adapterCfg == null )
    {
      throw new IllegalStateException("Could not find configured adapter '" + provider.getAdapter( ) + "'.");
    }
   
View Full Code Here

TOP

Related Classes of com.cloudloop.ProviderFactory

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.