This is a strongly typed DSL that allows you to map a Curator-style client to:
For example:
ModeledFramework<Foo> modeled = ModeledFramework.wrap(client, fooModelSpec); modeled.set(new Foo());
This ModeledFramework instance knows the path to use, how to serialize the "Foo" instance, which create options and ACLs to use, etc.
Note: To use Modeled Curator, you should be familiar with Java 8's lambdas, CompletedFuture and CompletionStage. You should also be familiar with Curator Async as Modeled Curator is based on it.
Modeled Curator consists of the components:
Additional functionality is provided by:
A complete example usage of Modeled Curator along with CachedModeledFramework and Typed Parameter Templates can be found here: https://github.com/apache/curator/tree/master/curator-examples/src/main/java/pubsub.
For more details see: