Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 753254d

Browse files
Petr BoudaGerrit Code Review
authored andcommitted
Merge "JERSEY-2431 Custom DI provider documentation fix" into 2.x
2 parents b5b9fb6 + a712f09 commit 753254d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/main/docbook/custom-di.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ public class MyApplication extends ResourceConfig {
165165
register(new AbstractBinder() {
166166
@Override
167167
protected void configure() {
168-
bindFactory(HttpSessionFactory.class).to(HttpSession.class);
168+
bindFactory(HttpSessionFactory.class).to(HttpSession.class)
169+
.proxy(true).proxyForSameScope(false).in(RequestScoped.class);
169170
}
170171
});
171172
}

0 commit comments

Comments
 (0)