| Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial | 
| Previous | Next | Contents | 
Table 4-1 lists the main differences between resource injection and dependency injection.
Table 4-1 Differences between Resource Injection and Dependency Injection
| Injection Mechanism | Can Inject JNDI Resources Directly | Can Inject Regular Classes Directly | Resolves By | Typesafe | 
| Resource Injection | Yes | No | Resource name | No | 
| Dependency Injection | No | Yes | Type | Yes | 
| Previous | Next | Contents | 
 Copyright © 2017, Oracle and/or its affiliates. All rights reserved.
 			
		Copyright © 2017, Oracle and/or its affiliates. All rights reserved.