Suppose that I've got a search criteria SessionScoped (POJO) component and I inject it with (create=true). Later on the user wants to clear the search criteria. The easiest way seems to to invalidate that component so that next time it gets injected a new one will get created.
Is this the right way and how do you do this?
Sounds fair enough.
Contexts.removeFromAllContexts() should do the trick.