git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/branches/data-transfer/data-transfer-service/2.0@150666 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
90f29a461a
commit
951e07b9d6
|
@ -27,9 +27,6 @@ public class DTServiceAppManager implements ApplicationManager {
|
|||
@Override
|
||||
public void onInit() {
|
||||
log.info("DT Application init");
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,8 +12,10 @@ import org.gcube.data.transfer.model.PluginInvocation;
|
|||
import org.gcube.data.transfer.plugin.AbstractPlugin;
|
||||
import org.gcube.data.transfer.plugin.AbstractPluginFactory;
|
||||
import org.gcube.data.transfer.plugin.fails.PluginException;
|
||||
import org.gcube.data.transfer.plugin.model.DataTransferContext;
|
||||
import org.gcube.data.transfer.service.transfers.engine.PluginManager;
|
||||
import org.gcube.data.transfer.service.transfers.engine.faults.PluginNotFoundException;
|
||||
import org.gcube.smartgears.ContextProvider;
|
||||
|
||||
import lombok.Synchronized;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -45,7 +47,7 @@ public class PluginManagerImpl implements PluginManager {
|
|||
for(AbstractPluginFactory factory:abstractFactoryLoader){
|
||||
log.debug("Initializing {}, {} ",factory.getID(),factory.getDescription());
|
||||
try{
|
||||
factory.init();
|
||||
factory.init(new DataTransferContext(ContextProvider.get()));
|
||||
toSet.put(factory.getID(), new PluginDescription(factory.getID(), factory.getDescription(), factory.getParameters()));
|
||||
}catch(Throwable e){
|
||||
log.warn("Unable to initialize plugin {} ",factory.getID(),e);
|
||||
|
|
Loading…
Reference in New Issue