CloudloopConfig config = new CloudloopConfig( );
Adapters adapters = new Adapters( );
config.setAdapters( adapters );
List<Adapter> adapterList = adapters.getAdapter( );
Adapter s3Adapter = new Adapter( );
s3Adapter.setImpl( AmazonS3CloudStore.class.getName( ) );
s3Adapter.setName( "amazonS3" );
s3Adapter.setType( AdapterType.STORAGE );
adapterList.add( s3Adapter );
Adapter nirvanixAdapter = new Adapter( );
nirvanixAdapter.setImpl( NirvanixCloudStore.class.getName( ) );
nirvanixAdapter.setName( "nirvanix" );
nirvanixAdapter.setType( AdapterType.STORAGE );
adapterList.add( nirvanixAdapter );
Adapter rackspaceAdapter = new Adapter( );
rackspaceAdapter.setImpl( RackspaceCloudStore.class.getName( ) );
rackspaceAdapter.setName( "rackspace" );
rackspaceAdapter.setType( AdapterType.STORAGE );
adapterList.add( rackspaceAdapter );
Adapter localAdapter = new Adapter( );
localAdapter.setImpl( LocalCloudStore.class.getName( ) );
localAdapter.setName( "local" );
localAdapter.setType( AdapterType.STORAGE );
adapterList.add( localAdapter );
Adapter jcloudsS3Adapter = new Adapter( );
jcloudsS3Adapter.setImpl( JS3CloudStore.class.getName( ) );
jcloudsS3Adapter.setName( "jS3" );
jcloudsS3Adapter.setType( AdapterType.STORAGE );
adapterList.add( jcloudsS3Adapter );
Stores stores = new Stores( );
config.setStores( stores );
List<Store> storeList = stores.getStore( );