devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From re...@apache.org
Subject svn commit: r1649987 - in /devicemap/trunk/devicemap/java/classifier_w3c_simple/src: main/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimple.java test/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimpleTest.java
Date Wed, 07 Jan 2015 02:49:36 GMT
Author: rezan
Date: Wed Jan  7 02:49:35 2015
New Revision: 1649987

URL: http://svn.apache.org/r1649987
Log:
class name for service loader

Modified:
    devicemap/trunk/devicemap/java/classifier_w3c_simple/src/main/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimple.java
    devicemap/trunk/devicemap/java/classifier_w3c_simple/src/test/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimpleTest.java

Modified: devicemap/trunk/devicemap/java/classifier_w3c_simple/src/main/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimple.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/devicemap/java/classifier_w3c_simple/src/main/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimple.java?rev=1649987&r1=1649986&r2=1649987&view=diff
==============================================================================
--- devicemap/trunk/devicemap/java/classifier_w3c_simple/src/main/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimple.java
(original)
+++ devicemap/trunk/devicemap/java/classifier_w3c_simple/src/main/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimple.java
Wed Jan  7 02:49:35 2015
@@ -43,6 +43,7 @@ public class DeviceMapW3CSimple implemen
   public final static String EVIDENCE = "User-Agent";
   public final static String LOADER_OPTION = "loaderOption";
   public final static String LOADER_OPTION_PATH = "loaderOptionPath";
+  public final static String CLASSNAME = DeviceMapW3CSimple.class.getName();
 
   private DeviceMapClient client;
 

Modified: devicemap/trunk/devicemap/java/classifier_w3c_simple/src/test/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimpleTest.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/devicemap/java/classifier_w3c_simple/src/test/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimpleTest.java?rev=1649987&r1=1649986&r2=1649987&view=diff
==============================================================================
--- devicemap/trunk/devicemap/java/classifier_w3c_simple/src/test/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimpleTest.java
(original)
+++ devicemap/trunk/devicemap/java/classifier_w3c_simple/src/test/java/org/apache/devicemap/w3csimple/DeviceMapW3CSimpleTest.java
Wed Jan  7 02:49:35 2015
@@ -30,7 +30,7 @@ public class DeviceMapW3CSimpleTest {
   public void testDeviceMapW3CSimple() throws Exception {
     //System.out.println("DeviceMapW3CSimple test");
 
-    Service simple = ServiceFactory.newService(DeviceMapW3CSimple.class.getName() , DeviceMapW3CSimple.VOCABULARY,
null);
+    Service simple = ServiceFactory.newService(DeviceMapW3CSimple.CLASSNAME , DeviceMapW3CSimple.VOCABULARY,
null);
 
     String userAgent = "Mozilla/5.0 (Linux; U; Android 2.2; en; HTC Aria A6380 Build/ERE27)
AppleWebKit/540.13+ (KHTML, like Gecko) Version/3.1 Mobile Safari/524.15.0";
 
@@ -58,7 +58,7 @@ public class DeviceMapW3CSimpleTest {
     props.put(DeviceMapW3CSimple.LOADER_OPTION, LoaderOption.URL.name());
     props.put(DeviceMapW3CSimple.LOADER_OPTION_PATH, "http://devicemap-vm.apache.org/data/latest/");
 
-    Service simple = ServiceFactory.newService(DeviceMapW3CSimple.class.getName() , DeviceMapW3CSimple.VOCABULARY,
props);
+    Service simple = ServiceFactory.newService(DeviceMapW3CSimple.CLASSNAME , DeviceMapW3CSimple.VOCABULARY,
props);
 
     String userAgent = "Mozilla/5.0 (Linux; U; Android 2.2; en; HTC Aria A6380 Build/ERE27)
AppleWebKit/540.13+ (KHTML, like Gecko) Version/3.1 Mobile Safari/524.15.0";
 



Mime
View raw message