Javadream

          A long way and a dream.
          從Spring文檔來(lái)的,清楚定義了幾個(gè)aop的術(shù)語(yǔ),因?yàn)閍op這些術(shù)語(yǔ)并不直觀,所以專門(mén)列出來(lái)備查。
          ? Aspect: A modularization of a concern for which the implementation might otherwise cut across multiple
          objects. Transaction management is a good example of a crosscutting concern in J2EE applications. Aspects
          are implemented using Spring as Advisors or interceptors.
          ? Joinpoint: Point during the execution of a program, such as a method invocation or a particular exception
          being thrown.
          ? Advice: Action taken by the AOP framework at a particular joinpoint. Different types of advice include
          "around," "before" and "throws" advice. Advice types are discussed below. Many AOP frameworks,
          including Spring, model an advice as an interceptor, maintaining a chain of interceptors "around" the
          joinpoint.
          ? Pointcut: A set of joinpoints specifying when an advice should fire. An AOP framework must allow
          developers to specify pointcuts: for example, using regular expressions.

          ? Introduction: Adding methods or fields to an advised class. Spring allows you to introduce new interfaces
          to any advised object. For example, you could use an introduction to make any object implement an
          IsModified interface, to simplify caching.
          ? Target object: Object containing the joinpoint. Also referred to as advised or proxied object.
          ? AOP proxy: Object created by the AOP framework, including advice. In Spring, an AOP proxy will be a
          JDK dynamic proxy or a CGLIB proxy.
          ? Weaving: Assembling aspects to create an advised object. This can be done at compile time (using the
          AspectJ compiler, for example), or at runtime. Spring, like other pure Java AOP frameworks, performs
          weaving at runtime.
          主站蜘蛛池模板: 遂溪县| 尚志市| 徐州市| 驻马店市| 临桂县| 珲春市| 大竹县| 兰州市| 陕西省| 文水县| 循化| 瑞安市| 定远县| 汉源县| 泗洪县| 祁门县| 石台县| 宣武区| 盐源县| 商水县| 广河县| 滕州市| 肥乡县| 新化县| 保亭| 常熟市| 全州县| 黄龙县| 抚顺市| 桓台县| 南江县| 黑龙江省| 甘孜县| 华坪县| 元阳县| 四会市| 贵德县| 资兴市| 宁乡县| 高淳县| 循化|