Inversion of Control: Dependencies between applications are externalized to the applications.
Dependency Injection is a specific form of Inversion of Control. It is specific type of IoC "which concerns with decoupling dependencies between high-level and low-level layers through shared abstractions.
Dependency injection can be viewed as declarative form of dependency management.
CDI(Context and Dependency Injection) is an implementation of the DI principle.
CDI Features
CDI manages
Dependency Injection is a specific form of Inversion of Control. It is specific type of IoC "which concerns with decoupling dependencies between high-level and low-level layers through shared abstractions.
Dependency injection can be viewed as declarative form of dependency management.
CDI(Context and Dependency Injection) is an implementation of the DI principle.
CDI Features
- Life Cycle Contexts
- Events
- Interceptors & Decorators
- Service Provider Interface
CDI manages
- lifecycle and interaction of stateful components bound to well-defined context
- Provides typesafe dependency injection between components
- Provides interceptors and decorators to extend the behavior of components
- Provides an event mechanism for building loosely coupled components.
- Provides Service Provider Interface for clean and transparent integration of portable extensions in to the platform.
No comments:
Post a Comment