mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2862. EC2Engine is not injected correctly
This commit is contained in:
parent
971c40d98e
commit
bbfa9bfcbd
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user