You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by Apache Wiki <wi...@apache.org> on 2006/12/22 15:25:38 UTC
[Jakarta-hivemind Wiki] Update of
"NewAndNoteworthyFeaturesInAnnotationBranch" by AchimHuegen
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);