hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahue...@apache.org
Subject svn commit: r513479 - /hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/definition/JavaDefinitionExample.java
Date Thu, 01 Mar 2007 20:15:14 GMT
Author: ahuegen
Date: Thu Mar  1 12:15:14 2007
New Revision: 513479

URL: http://svn.apache.org/viewvc?view=rev&rev=513479
Log:
Reverted last checkin which was a mistake

Modified:
    hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/definition/JavaDefinitionExample.java

Modified: hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/definition/JavaDefinitionExample.java
URL: http://svn.apache.org/viewvc/hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/definition/JavaDefinitionExample.java?view=diff&rev=513479&r1=513478&r2=513479
==============================================================================
--- hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/definition/JavaDefinitionExample.java
(original)
+++ hivemind/hivemind2/trunk/examples/src/java/org/apache/examples/definition/JavaDefinitionExample.java
Thu Mar  1 12:15:14 2007
@@ -23,10 +23,6 @@
 import org.apache.hivemind.impl.RegistryBuilder;
 import org.apache.hivemind.internal.AbstractServiceImplementationConstructor;
 import org.apache.hivemind.internal.ServiceModel;
-import org.apache.hivemind.service.Autowiring;
-import org.apache.hivemind.service.ClassFactory;
-import org.apache.hivemind.service.ThreadEventNotifier;
-import org.apache.hivemind.service.ThreadLocalStorage;
 import org.apache.hivemind.util.ClasspathResource;
 
 /**
@@ -44,11 +40,6 @@
         Calculator calculator = (Calculator) registry.getService(Calculator.class);
         double result = calculator.add(10, 20);
         System.out.println("Result: " + result);
-        
-        registry.getService("hivemind.ClassFactory", ClassFactory.class);
-        registry.getService("hivemind.ThreadEventNotifier", ThreadEventNotifier.class);
-        registry.getService("hivemind.ThreadLocalStorage", ThreadLocalStorage.class);
-        registry.getService("hivemind.Autowiring", Autowiring.class);
     }
     
     private Registry constructRegistry()
@@ -58,7 +49,6 @@
         registryDefinition.addModule(module);
         
         RegistryBuilder builder = new RegistryBuilder(registryDefinition);
-        builder.autoDetectModules();
         Registry registry = builder.constructRegistry();
         return registry;
     }



Mime
View raw message