We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a user want to extends the context-stack, it have to use the "wrap" method of ContextFactory
Root Context:
Context context = ContextFactory.wrap(model);
Child Context:
Context context = ContextFactory.wrap(model); Context child = ContextFactory.wrap(context, moreData);
This works but have two disadvantages:
The new API has more semantic and help to reduce errors
Context root = Context.newContext(model);
Context root = Context.newContext(model); Context child = Context.newContext(child, data);
Extended Context:
Context root = Context.newContext(model) .combine("user", user) .combine(map) .build();
The text was updated successfully, but these errors were encountered:
Improve the Context API #17
950ed5a
437f7b4
b327ac9
Introduce a ValueResolver #22
jknack
No branches or pull requests
Problem:
If a user want to extends the context-stack, it have to use the "wrap" method of ContextFactory
Root Context:
Child Context:
This works but have two disadvantages:
Solution
The new API has more semantic and help to reduce errors
Root Context:
Child Context:
Extended Context:
The text was updated successfully, but these errors were encountered: