CLOUDSTACK-2862. EC2Engine is not injected correctly

This commit is contained in:
Likitha Shetty 2013-06-07 11:07:37 +05:30
parent 971c40d98e
commit bbfa9bfcbd

View File

@ -91,8 +91,6 @@ public class ServiceProvider extends ManagerBase {
// register service implementation object
Transaction txn = Transaction.open(Transaction.AWSAPI_DB);
txn.close();
serviceMap.put(AmazonS3SkeletonInterface.class, new S3SerializableServiceImplementation(engine));
serviceMap.put(AmazonEC2SkeletonInterface.class, new EC2SoapServiceImpl(EC2_engine));
}
public synchronized static ServiceProvider getInstance() {
@ -101,7 +99,9 @@ public class ServiceProvider extends ManagerBase {
@PostConstruct
void initComponent() {
instance = this;
serviceMap.put(AmazonS3SkeletonInterface.class, new S3SerializableServiceImplementation(engine));
serviceMap.put(AmazonEC2SkeletonInterface.class, new EC2SoapServiceImpl(EC2_engine));
instance = this;
}
public boolean configure(String name, Map<String, Object> params)