tmf remote: comply with naming convention in RemoteSystemProxyFactory
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Fri, 27 Mar 2015 15:16:14 +0000 (11:16 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Fri, 27 Mar 2015 19:48:34 +0000 (15:48 -0400)
Change-Id: I164204b2849272a777cf05291bd0fbf9137b3c61
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/44772
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
org.eclipse.tracecompass.tmf.remote.core/src/org/eclipse/tracecompass/tmf/remote/core/proxy/RemoteSystemProxyFactory.java

index 85c1a4868fa8aa1db96dbe9712fc57f0213f73f5..eed45f5615fd20be0d8804b2495b938757d1289c 100644 (file)
@@ -28,7 +28,7 @@ import org.eclipse.remote.internal.jsch.core.JSchConnection;
 import org.eclipse.tracecompass.internal.tmf.remote.core.messages.Messages;
 
 /**
- * Connection factory.
+ * RemoteSystemProxy factory.
  *
  * @author Bernd Hufmann
  */
@@ -39,14 +39,14 @@ public class RemoteSystemProxyFactory {
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
-    private static final Map<String, IConnectionFactory> fConnectionFactories = new HashMap<>();
-    private static final DefaultConnectionFactory fDefaultConnectionFactory = new DefaultConnectionFactory();
+    private static final Map<String, IConnectionFactory> CONNECTION_FACTORIES = new HashMap<>();
+    private static final DefaultConnectionFactory DEFAULT_CONNECTION_FACTORY = new DefaultConnectionFactory();
 
     static {
         // Add local services
         IRemoteServicesManager manager = RemoteSystemProxy.getService(IRemoteServicesManager.class);
         if (manager != null) {
-            fConnectionFactories.put(manager.getLocalConnectionType().getId(), new LocalConnectionFactory());
+            CONNECTION_FACTORIES.put(manager.getLocalConnectionType().getId(), new LocalConnectionFactory());
         }
     }
 
@@ -63,7 +63,7 @@ public class RemoteSystemProxyFactory {
      *                the factory implementation
      */
     public static void registerConnectionFactory(String connectionTypeId, IConnectionFactory factory) {
-        fConnectionFactories.put(connectionTypeId, factory);
+        CONNECTION_FACTORIES.put(connectionTypeId, factory);
     }
 
     /**
@@ -90,12 +90,12 @@ public class RemoteSystemProxyFactory {
             throw new RemoteConnectionException(MessageFormat.format(Messages.RemoteConnection_ConnectionError, hostUri));
         }
 
-        IConnectionFactory connectionFactory = fConnectionFactories.get(connectionType.getId());
+        IConnectionFactory connectionFactory = CONNECTION_FACTORIES.get(connectionType.getId());
         // Create a new connection
         if (connectionFactory != null) {
             connection = connectionFactory.createConnection(connectionType, hostUri, hostName);
         } else {
-            connection = fDefaultConnectionFactory.createConnection(connectionType, hostUri, hostName);
+            connection = DEFAULT_CONNECTION_FACTORY.createConnection(connectionType, hostUri, hostName);
         }
 
         return new RemoteSystemProxy(connection);
This page took 0.026383 seconds and 5 git commands to generate.