I use "@Scope(PERTHREAD_SCOPE)" on build method in my AppModule.java.
It will create new instance in every new request, but it seems the method
build a singleton!
I use IE and FireFox request the page!
my code: in AppModule.java
@EagerLoad
@Scope(PERTHREAD_SCOPE)
public BoboCacheState buildCacheState(@InjectService("Cache")
Cache cache) {
BoboCacheState state = new BoboCacheState();
cache.getCacheEventNotificationService().registerListener(state);
return state;
}
in page index.java:
@Inject
private BoboCacheState state;
----徐 依伟