This great primer for Contexts and Dependency Injection covers the need for it and a simple implementation in a Java EE environment that focuses on injecting properties.
In the first of this two-part article, we look at the roles involved in authentication a request via OAuth, the protocol flow, and how authorization is granted to a user.