Reputation: 588
I'm using the @Scope annotation with value of "request". How do I check if the given object with the "Scope" annotation is instantiated on each http request ? Do the object (bean) have some identifier (hashcode ) ? And, I don't mean the bean id.
Upvotes: 0
Views: 45
Reputation: 3573
You gotta believe!
No, I'm kidding. Methods I used so far:
Maybe these are not uber-pro methods, but may be enough in some cases and you don't have to add anything in your code.
Upvotes: 1
Reputation: 57381
System.identityHashCode(theBeanVariable)
Print the hashes and check the objects are the same or not.
Upvotes: 1