hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-hivemind Wiki] Update of "NewAndNoteworthyFeaturesInAnnotationBranch" by AchimHuegen
Date Fri, 22 Dec 2006 14:25:38 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-hivemind Wiki" for change
notification.

The following page has been changed by AchimHuegen:
http://wiki.apache.org/jakarta-hivemind/NewAndNoteworthyFeaturesInAnnotationBranch

------------------------------------------------------------------------------
  The definition of service points, configuration points, contributions etc. is
  possible now without xml. 
  
- More info: ["RegistryDefinitionAPI"]
+ More info (outdated): ["RegistryDefinitionAPI"]
  
  == Registry Building ==
  
@@ -44, +44 @@

  reader.readClassPathModule("foo/hivemodule2.xml");
  
  RegistryBuilder builder = new RegistryBuilder(registryDefinition );
- Registry registry = builder.constructRegistry(Locale.getDefault());
+ Registry registry = builder.constructRegistry();
  }}}
  
  That is working similar for the new annotated modules:
@@ -55, +55 @@

  
  And finally it is possible to create the module definition by hand:
  {{{
- ModuleDefinition module = new ModuleDefinition("test");
+ ModuleDefinition module = new ModuleDefinitionImpl("test");
  
- ServicePointDefinition service1 = new ServicePointDefinition(module, "Service1",
+ ServicePointDefinition service1 = new ServicePointDefinitionImpl(module, "Service1",
    null, Visibility.PUBLIC, Runnable.class.getName());
  
  module.addServicePoint(service1);

Mime
View raw message