diff options
Diffstat (limited to 'java/sca/modules/extensibility')
-rw-r--r-- | java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscoverer.java (renamed from java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscover.java) | 14 | ||||
-rw-r--r-- | java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java | 2 | ||||
-rw-r--r-- | java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscovererTestCase.java | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscover.java b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscoverer.java index 803f5f615d..da94931087 100644 --- a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscover.java +++ b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscoverer.java @@ -43,7 +43,7 @@ import java.util.logging.Logger; /** * */ -public class ClasspathServiceDiscover implements ServiceDiscoverer { +public class ClasspathServiceDiscoverer implements ServiceDiscoverer { public class ServiceDeclarationImpl implements ServiceDeclaration { private URL url; @@ -84,8 +84,8 @@ public class ClasspathServiceDiscover implements ServiceDiscoverer { return getClassLoader().loadClass(className); } - private ClasspathServiceDiscover getOuterType() { - return ClasspathServiceDiscover.this; + private ClasspathServiceDiscoverer getOuterType() { + return ClasspathServiceDiscoverer.this; } public String toString() { @@ -106,15 +106,15 @@ public class ClasspathServiceDiscover implements ServiceDiscoverer { } private WeakReference<ClassLoader> classLoaderReference; - private static final Logger logger = Logger.getLogger(ClasspathServiceDiscover.class.getName()); + private static final Logger logger = Logger.getLogger(ClasspathServiceDiscoverer.class.getName()); - public ClasspathServiceDiscover() { + public ClasspathServiceDiscoverer() { // ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); - ClassLoader classLoader = ClasspathServiceDiscover.class.getClassLoader(); + ClassLoader classLoader = ClasspathServiceDiscoverer.class.getClassLoader(); this.classLoaderReference = new WeakReference<ClassLoader>(classLoader); } - public ClasspathServiceDiscover(ClassLoader classLoader) { + public ClasspathServiceDiscoverer(ClassLoader classLoader) { this.classLoaderReference = new WeakReference<ClassLoader>(classLoader); } diff --git a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java index b509a227ab..659329a332 100644 --- a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java +++ b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java @@ -55,7 +55,7 @@ public class ServiceDiscovery { public static ServiceDiscoverer getServiceDiscoverer() { if (discoverer == null) { - discoverer = new ClasspathServiceDiscover(); + discoverer = new ClasspathServiceDiscoverer(); } return discoverer; } diff --git a/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscovererTestCase.java b/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscovererTestCase.java index fbdd4a6b2e..71faca2732 100644 --- a/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscovererTestCase.java +++ b/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ClasspathServiceDiscovererTestCase.java @@ -31,14 +31,14 @@ import org.junit.Test; * Test Case for ClasspathServiceDiscover */ public class ClasspathServiceDiscovererTestCase { - private static ClasspathServiceDiscover discover; + private static ClasspathServiceDiscoverer discover; /** * @throws java.lang.Exception */ @BeforeClass public static void setUpBeforeClass() throws Exception { - discover = new ClasspathServiceDiscover(ClasspathServiceDiscover.class.getClassLoader()); + discover = new ClasspathServiceDiscoverer(ClasspathServiceDiscoverer.class.getClassLoader()); } @Test |