AOP in the main technical (1)

  Abstract: AOP in the main technical (1) 

  : 1.Method Interceptor 
  AOP use, we can have a runtime of the Proxy class.    For example, 
  UserProxy succession User 

  GetName () invoke () invoke () getName () 
  — —– InterceptorA-UserProxy InterceptorB - …- User 

  2. "Multiple inheritance" 
  In the event of UserProxy, at the same time it can also interface to achieve the other.    When UserProxy 
  Instantiated at the same time will create these interfaces Proxy. 
  For example, the need to achieve Node Interface, Node interface defines methods getFolder () 

  GetFolder () getFolder () getFolder 
  - UserProxy - NodeProxy - Node 

  From: gty (Yiliang - Lijiang - Hudiequan), the letter District: JavaClub 
  Title: AOP wrote in the main technical points: BBS Shuimu Tsinghua Station (Fri Feb 21 02:26:15 2003), to the letter 

  1.Method Interceptor 
  AOP use, we can have a runtime of the Proxy class.    For example, 
  UserProxy succession User 

  GetName () invoke () invoke () getName () 
  — —– InterceptorA-UserProxy InterceptorB - …- User 

  2. "Multiple inheritance" 
  In the event of UserProxy, at the same time it can also interface to achieve the other.    When UserProxy 
  Instantiated at the same time will create these interfaces Proxy. 
  For example, the need to achieve Node Interface, Node interface defines methods getFolder () 

  GetFolder () getFolder () getFolder 
  - UserProxy - NodeProxy - Node 

  3 Runtime Attribute 
  Is the use of java doc Notes programming.    Traditional circumstances, we only java doc as a footnote in the operation does not use now, 
  These java doc procedures can also be used as an element of running the. 
  ——————— 
  | Example: | 
  | = @ Magic.tx type required | 
  | Public void makeOrder (Order order) (| 
  | … 
|
  |); 
|
  | | 
——————————————
  In this example, the run-time system can be API Access to the 
  @ Magic.tx the type is required to control the Transaction. 

  Java, java, J2SE, j2se, J2EE, j2ee, J2ME, j2me, ejb, ejb3, JBOSS, jboss, spring, hibernate, jdo, struts, webwork, ajax, AJAX, mysql, MySQL, Oracle, Weblogic, Websphere, scjp, scjd 
  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags:

Releated Java Articles

Comments

Leave a Reply