I was looking at service registration and thought that it might be better/more user-friendly to switch this to use the builder pattern to construct the services.
Compare:
final Registration handle = endpoint.serviceBuilder() .setRequestType(String.class).setReplyType(String.class) .setGroupName("main").setServiceType("simple.rot13") .setClientListener(new StringRot13ClientListener()) .register();
final LocalServiceConfiguration<String, String> config = LocalServiceConfiguration.create(new StringRot13ClientListener(), String.class, String.class); config.setGroupName("main"); config.setServiceType("simple.rot13"); final Registration handle = endpoint.registerService(config);
I prefer the first one. If someone does not like method chaining, he or she can simply choose not to use it.