Changeset 3158

Show
Ignore:
Timestamp:
03/05/10 21:13:05 (2 years ago)
Author:
romain.reuillon
Message:
 
Location:
trunk/openmole
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/openmole/runtime/org.openmole.runtime/src/main/java/org/openmole/runtime/internal/Activator.java

    r3156 r3158  
    1111import org.openmole.core.execution.runtimemessageserializer.IEnvironmentDescriptionSerializer; 
    1212import org.openmole.core.execution.runtimemessageserializer.IRuntimeMessageSerializer; 
    13 import org.openmole.misc.backgroundexecutor.ITransferMonitor; 
     13import org.openmole.misc.backgroundexecutor.IBackgroundExecutor; 
    1414import org.openmole.misc.workspace.IWorkspace; 
    1515 
     
    2222    private static IEnvironmentDescriptionSerializer environmentDescriptionSerializer; 
    2323    private static IJSagaSessionService jSagaSessionService; 
    24     private static ITransferMonitor transferMonitor; 
     24    private static IBackgroundExecutor backgroundExecutor; 
    2525    private static IEventDispatcher eventDispatcher; 
    2626    private static IPluginManager pluginManager; 
     
    8888    } 
    8989 
    90     public static ITransferMonitor getTransferMonitor() { 
    91         if (transferMonitor != null) { 
    92             return transferMonitor; 
     90    public static IBackgroundExecutor getBackgroundExecutor() { 
     91        if (backgroundExecutor != null) { 
     92            return backgroundExecutor; 
    9393        } 
    9494 
    9595        synchronized (Activator.class) { 
    96             if (transferMonitor == null) { 
    97                 ServiceReference ref = getContext().getServiceReference(ITransferMonitor.class.getName()); 
    98                 transferMonitor = (ITransferMonitor) getContext().getService(ref); 
     96            if (backgroundExecutor == null) { 
     97                ServiceReference ref = getContext().getServiceReference(IBackgroundExecutor.class.getName()); 
     98                backgroundExecutor = (IBackgroundExecutor) getContext().getService(ref); 
    9999            } 
    100             return transferMonitor; 
     100            return backgroundExecutor; 
    101101        } 
    102102    } 
  • trunk/openmole/ui/org.openmole.ui.console

    • Property svn:ignore
      •  

        old new  
        11target 
         2.pom.xml.swp 
  • trunk/openmole/ui/org.openmole.ui.console/src/main/java/org/openmole/ui/console/internal/Activator.java

    r3156 r3158  
    55import org.osgi.framework.ServiceReference; 
    66import org.openmole.misc.pluginmanager.IPluginManager; 
    7 import org.openmole.misc.backgroundexecutor.ITransferMonitor; 
    87import org.openmole.misc.workspace.IWorkspace; 
    98import org.openmole.core.execution.structuregenerator.IStructureGenerator; 
     
    1312    static BundleContext context; 
    1413    private static IWorkspace workspace; 
    15     private static ITransferMonitor transferMonitor; 
    1614    private static IPluginManager pluginManager; 
    1715    private static IStructureGenerator structureGenerator; 
     
    4947    } 
    5048 
    51     public static ITransferMonitor getTransferMonitor() { 
    52         if (transferMonitor != null) { 
    53             return transferMonitor; 
    54         } 
    55  
    56         synchronized (Activator.class) { 
    57             if (transferMonitor == null) { 
    58                 ServiceReference ref = getContext().getServiceReference(ITransferMonitor.class.getName()); 
    59                 transferMonitor = (ITransferMonitor) getContext().getService(ref); 
    60             } 
    61             return transferMonitor; 
    62         } 
    63     } 
    64  
    6549    public synchronized static IStructureGenerator getStructureGenerator() { 
    6650        if (structureGenerator == null) { 

logo cemagref

logo iscpif

logo lifegrid

logo region auvergne

logo patres project