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

Commit e307513

Browse files
author
Adam Lindenthal
committed
JERSEY-2431 Custom DI provider documentation fix
Change-Id: I33409e0c44ae9d3115ba60f9a3a4f88ac5a93cf9
1 parent 0d1326d commit e307513

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)