Changeset 3158
- Timestamp:
- 03/05/10 21:13:05 (2 years ago)
- 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 11 11 import org.openmole.core.execution.runtimemessageserializer.IEnvironmentDescriptionSerializer; 12 12 import org.openmole.core.execution.runtimemessageserializer.IRuntimeMessageSerializer; 13 import org.openmole.misc.backgroundexecutor.I TransferMonitor;13 import org.openmole.misc.backgroundexecutor.IBackgroundExecutor; 14 14 import org.openmole.misc.workspace.IWorkspace; 15 15 … … 22 22 private static IEnvironmentDescriptionSerializer environmentDescriptionSerializer; 23 23 private static IJSagaSessionService jSagaSessionService; 24 private static I TransferMonitor transferMonitor;24 private static IBackgroundExecutor backgroundExecutor; 25 25 private static IEventDispatcher eventDispatcher; 26 26 private static IPluginManager pluginManager; … … 88 88 } 89 89 90 public static I TransferMonitor getTransferMonitor() {91 if ( transferMonitor != null) {92 return transferMonitor;90 public static IBackgroundExecutor getBackgroundExecutor() { 91 if (backgroundExecutor != null) { 92 return backgroundExecutor; 93 93 } 94 94 95 95 synchronized (Activator.class) { 96 if ( transferMonitor == null) {97 ServiceReference ref = getContext().getServiceReference(I TransferMonitor.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); 99 99 } 100 return transferMonitor;100 return backgroundExecutor; 101 101 } 102 102 } -
trunk/openmole/ui/org.openmole.ui.console
- Property svn:ignore
-
old new 1 1 target 2 .pom.xml.swp
-
- Property svn:ignore
-
trunk/openmole/ui/org.openmole.ui.console/src/main/java/org/openmole/ui/console/internal/Activator.java
r3156 r3158 5 5 import org.osgi.framework.ServiceReference; 6 6 import org.openmole.misc.pluginmanager.IPluginManager; 7 import org.openmole.misc.backgroundexecutor.ITransferMonitor;8 7 import org.openmole.misc.workspace.IWorkspace; 9 8 import org.openmole.core.execution.structuregenerator.IStructureGenerator; … … 13 12 static BundleContext context; 14 13 private static IWorkspace workspace; 15 private static ITransferMonitor transferMonitor;16 14 private static IPluginManager pluginManager; 17 15 private static IStructureGenerator structureGenerator; … … 49 47 } 50 48 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 65 49 public synchronized static IStructureGenerator getStructureGenerator() { 66 50 if (structureGenerator == null) {





