Skip to content
New issue

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

request should be able to 'seed' requestScoped objects #33

Closed
jknack opened this issue Feb 7, 2015 · 0 comments
Closed

request should be able to 'seed' requestScoped objects #33

jknack opened this issue Feb 7, 2015 · 0 comments
Milestone

Comments

@jknack
Copy link
Member

jknack commented Feb 7, 2015

This issue is related to #32. From request object it should be possible to seed a RequestScoped object:

user("*", req -> {
  req.set(Type.class, new Type());
}

seed method(s) looks like:

  Request set(final Class<?> type, final Object value);

  Request set(final TypeLiteral<?> type, final Object value);

  Request set(Key<?> key, Object value);
@jknack jknack added this to the 0.5.0 milestone Feb 7, 2015
@jknack jknack closed this as completed in 391078c Feb 22, 2015
jknack added a commit that referenced this issue Feb 22, 2015
* jooby-hbm: update/sync EntityManager to RequestScoped
* add license header to missing classes
* move to next dev cycle 0.5.0-SNAPSHOT
* rename ws.getInstance to ws.require
* increase test coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant