Type-safe Dependency Injection of Services into Enterprise Components
AssigneeOracle International Corporation
InventorsSivakumar Melapannai Thyagarajan, Sanjeeb Sahoo
Life of this patent
Estimating the term…
Abstract
A system, method, and medium are disclosed for implementing an application component container. The container is configured to detect that a component managed by the container is dependent on an interface that is implemented by a dynamic module provided by a dynamic module system. The container uses a dependency injection framework to inject the implementation into the dependent component in a type-safe manner.
Claims20
A computer-readable, non-transitory storage medium comprising program instructions executable by a computer to implement:
- an application component container, wherein the component container is configured to:
- detect that a component managed by the container is dependent on an interface implemented by a dynamic module provided by a dynamic module system;
- and
- inject the implementation into the dependent component, wherein the injection is performed by a dependency injection framework in a type-safe manner.
A computer-implemented method, comprising:
- implementing, by a computer, an application component container, including a dependency injection framework;
- detecting, by the container, that a component managed by the container is dependent on an interface implemented by a dynamic module provided by a dynamic module system;
- and
- injecting, by the dependency injection framework of the container, the implementation into the dependent component, wherein the injection is performed by the dependency injection framework in a type-safe manner.
A system comprising:
- a processor;
- and
- a memory coupled to the processor, wherein the memory stores program instructions executable by the processor to implement an application component container configured to:
- detect that a component managed by the container is dependent on an interface implemented by a dynamic module provided by a dynamic module system;
- and
- inject the implementation into the dependent component, wherein the injection is performed by a dependency injection framework in a type-safe manner.
Dependencies are inferred from the claim text.