4

How does one remove a bean in a custom scope in Spring?

I was reading the documentation and I couldn't find/understand how it's supposed to be done. For instance, how am I suppose to evict a bean from a scope after a certain condition is reached? Should I autowire an instance of my custom scope and invoke Object remove(String name) on it?

Rafael Sousa
  • 691
  • 5
  • 8

0 Answers0