Go to about:config
Look for: dom.webnotifications.enabled
and set its value to ‘false’.
This will completely disable push notifications and Firefox won’t ask your permission again.
I was busy writing a blog post about types of dependency injection, since it’s come up a few times at work, but it seems as though Roger has done it for me: Java: Spring Dependency Injection Patterns – The good, the bad, and the ugly.
Basically: use constructor injection.