File tree Expand file tree Collapse file tree
awsapi/src/com/cloud/bridge/service/controller/s3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,8 +91,6 @@ protected ServiceProvider() throws IOException {
9191 // register service implementation object
9292 Transaction txn = Transaction .open (Transaction .AWSAPI_DB );
9393 txn .close ();
94- serviceMap .put (AmazonS3SkeletonInterface .class , new S3SerializableServiceImplementation (engine ));
95- serviceMap .put (AmazonEC2SkeletonInterface .class , new EC2SoapServiceImpl (EC2_engine ));
9694 }
9795
9896 public synchronized static ServiceProvider getInstance () {
@@ -101,7 +99,9 @@ public synchronized static ServiceProvider getInstance() {
10199
102100 @ PostConstruct
103101 void initComponent () {
104- instance = this ;
102+ serviceMap .put (AmazonS3SkeletonInterface .class , new S3SerializableServiceImplementation (engine ));
103+ serviceMap .put (AmazonEC2SkeletonInterface .class , new EC2SoapServiceImpl (EC2_engine ));
104+ instance = this ;
105105 }
106106
107107 public boolean configure (String name , Map <String , Object > params )
You can’t perform that action at this time.
0 commit comments