DataManagerManagedConnection.java
930 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.aemds.datamanager.impl;
import com.adobe.aemds.bedrock.CoreConfigService;
import com.adobe.aemds.datamanager.impl.DataManagerImpl;
import com.adobe.aemds.datamanager.impl.DataManagerService;
import com.adobe.service.ConnectionResource;
public class DataManagerManagedConnection
extends ConnectionResource {
private final DataManagerService service;
private DataManagerImpl dataManager;
public DataManagerManagedConnection(DataManagerService service) {
this.service = service;
}
public Object allocateConnection() {
this.dataManager = new DataManagerImpl(this);
this.dataManager.setCoreConfigService(this.service.getCoreConfigService());
return this.dataManager;
}
public void onComplete() {
this.dataManager.cleanup();
}
DataManagerService getService() {
return this.service;
}
}