AOP (Aspect Oriented Programming) implementation method of EJB 3 (Enterprise Java Beans 3) containers based on dynamic stack

An implementation method and dynamic technology, applied in the direction of instrument, memory system, program control design, etc., can solve the problems of destroying the structure and complexity of the code

Active Publication Date: 2012-06-20
XI AN JIAOTONG UNIV
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, although the AOP implemented by this source code generation method has certain advantages in performance, it is too complicated. The intrusive programming of modifying the source code destroys the structure of the original code and brings certain problems to the development.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • AOP (Aspect Oriented Programming) implementation method of EJB 3 (Enterprise Java Beans 3) containers based on dynamic stack
  • AOP (Aspect Oriented Programming) implementation method of EJB 3 (Enterprise Java Beans 3) containers based on dynamic stack
  • AOP (Aspect Oriented Programming) implementation method of EJB 3 (Enterprise Java Beans 3) containers based on dynamic stack

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be further described below in conjunction with accompanying drawing.

[0029] 1) Precompiled way to process system-level interceptor method

[0030] From the type, EJB can be divided into stateless session bean, stateful session bean, entity bean and message-driven bean; from the type of transaction management, it can also be divided into BMT (bean management practice) and CMT (container management transaction); each type is different The combination of categories has its own specific preprocessing method. You can customize different precompiled base classes for different categories, and let these precompiled base classes implement the precompiled interface to simplify the modification of the source code during the preprocessing process. Simplify or try not to modify the source code.

[0031] Precompilation does not actually modify the source file to prevent intrusive programming that modifies the source code from destroying the structure of ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

An AOP (Aspect Oriented Programming) implementation method of EJB 3 (Enterprise Java Beans 3) containers based on dynamic stack achieves the business method interception of the EJB containers through the combination of pre-compilation and dynamic stack. According to the characteristic that system services such as log, transaction management and security process all EJB in the same way, corresponding codes are regenerated into source codes through pre-compilation, so as to reduce the time for processing the requests of interceptors; and intrusive modifications of the source codes are minimized through configuration files. As for the EJB business method interceptors, considering the characteristic that the interceptor classes are often modified and edited by programmers, the method adopts dynamic stack to avoid the defect that the source codes are repeatedly generated by pre-compilation; and compared with the dynamic proxy method, the method provided by the invention saves a great amount of memory space for generating dynamic proxy classes. The business method interception speed and flexibility of the EJB containers are improved through the static-dynamic combination.

Description

technical field [0001] The invention proposes a method for realizing EJB3 business method interception based on a dynamic stack under the Java EE system framework. The method combines precompilation and dynamic stack to process interceptor methods at the system level and business method level respectively, and improves the speed and flexibility of the business method interception by the EJB container. Background technique [0002] AOP is the abbreviation of Aspect Oriented Programming, that is, aspect-oriented programming. [0003] AOP technology uses a technique called "cross-cutting" to dissect the inside of the encapsulated object, and encapsulate the public behavior that affects multiple classes into a reusable module, and name it "Aspect", that is On the one hand, that is to encapsulate the logic or responsibility that is not related to the business but is commonly called by the business modules, so as to reduce the duplication of code in the system, reduce the couplin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F9/45
Inventor 齐勇王培培杨涛郝莹耀
Owner XI AN JIAOTONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products