IP Library › Granted Patent US 8,060,858
Granted Patent B2
US 8,060,858 · App. 11/648,210 · Granted Nov 15, 2011

Injection library

Assignee: SAP AG
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,060,858
App. No.
11/648,210
Granted
Nov 15, 2011
Kind
B2
Abstract

A runtime environment injects an instance of an external resource into an application component to be executed in the runtime environment by first determining an external resource associated with the application component, then selecting from a library of injectors an injector to inject an instance of the application component with an instance of an external resource referenced by the external resource annotation. The selected injector determines the instance of the application component to inject with the instance of the external resource and injects the instance of the application component with the instance of the external resource.

Claims (22)

1. A method for a runtime environment container to inject an instance of an external resource into an application component to be executed in the runtime environment container, the method comprising:

determining, using one or more processors, the external resource associated with the application component;

selecting from a library of injectors an injector to inject an instance of the application component with the instance of the external resource referenced by an external resource annotation;

the selected injector determining the instance of the application component to inject with the instance of the external resource; and

the selected injector injecting the instance of the application component with the instance of the external resource.

2. The method of claim 1 wherein the application component is selected from a group of application components consisting of an EJB service, a web container, an interceptor class, and an application client container.

3. The method of claim 1 , wherein determining an external resource associated with the application component comprises reading an external resource annotation from the application component.

4. The method of claim 1 , wherein determining an external resource associated with the application component comprises reading a deployment descriptor associated with the application component from a deployment descriptor file.

5. The method of claim 1 , wherein the library of injectors comprises a library of method injectors and field injectors.

6. The method of claim 1 further comprising providing the library with a set of injectors available to the application component.

7. The method of claim 1 , wherein the selected injector injecting the instance of the application component with the instance of the external resource comprises the selected injector injecting one of a method element or a field element in the instance of the application component with the instance of the external resource.

8. A non-transitory machine-readable medium having executable code to cause a machine to perform a method for a runtime environment container to inject an instance of an external resource into an application component to be executed in the runtime environment container, the method comprising:

determining the external resource associated with the application component;

selecting from a library of injectors an injector to inject an instance of the application component with the instance of the external resource referenced by an external resource annotation;

the selected injector determining the instance of the application component to inject with the instance of the external resource; and

the selected injector injecting the instance of the application component with the instance of the external resource.

9. The non-transitory machine-readable medium of claim 8 wherein the application component is selected from a group of application components consisting of an EJB service, a web container, an interceptor class, and an application client container.

10. The non-transitory machine-readable medium of claim 8 , wherein determining an external resource associated with the application component comprises reading an external resource annotation from the application component.

11. The non-transitory machine-readable medium of claim 8 , wherein determining an external resource associated with the application component comprises reading a deployment descriptor associated with the application component from a deployment descriptor file.

12. The non-transitory machine-readable medium of claim 8 , wherein the library of injectors comprises a library of method injectors and field injectors.

13. The non-transitory machine-readable medium of claim 8 further comprising providing the library with a set of injectors available to the application component.

14. The non-transitory machine-readable medium of claim 8 , wherein the selected injector injecting the instance of the application component with the instance of the external resource comprises the selected injector injecting one of a method element or a field element in the instance of the application component with the instance of the external resource.

Assignments (2)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0334 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 23, 2007
From: MITROV, VESSELIN P.; PAVLOV, VLADIMIR K.; SABEV, HRISTO K.
To: SAP AG
Reel/Frame 018933/0535 →
Continuity (1)
Related Publication 20080163270A1 · Jul 3, 2008