From 6c4770cba1ff07c1d5a406b34f0cfc44a3e05ebe Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 27 Mar 2006 20:18:34 +0000 Subject: updates from pr132111 --- docs/devGuideDB/ltw.xml | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'docs/devGuideDB') diff --git a/docs/devGuideDB/ltw.xml b/docs/devGuideDB/ltw.xml index 35f53afba..b35256ab6 100644 --- a/docs/devGuideDB/ltw.xml +++ b/docs/devGuideDB/ltw.xml @@ -137,7 +137,7 @@ Configuring Load-time Weaving with aop.xml files The weaver is configured using one or more META-INF/aop.xml - files located on the class loader search path. Each file may define a list of + files located on the class loader search path. Each file may declare a list of aspects to be used for weaving, type patterns describing which types should woven, and a set of options to be passed to the weaver. In addition AspectJ 5 supports the definition of concrete aspects in XML. Aspects defined in this way @@ -226,7 +226,7 @@ behaviour a lint warning is issued if an aspect is not declared as a result of of applying these filters. Also note aspect and concrete-aspect elements - must be used to delare aspects to the weaver i.e. include and exclude + must be used to declare aspects to the weaver i.e. include and exclude elements cannot be used find aspects on the class loader search path. @@ -240,7 +240,7 @@ When several configuration files are visible from a given weaving class loader their contents are conceptually merged. The files are merged in the order they are - found on the search path (regular getResourceAsStream lookup) + found on the search path (with a regular getResourceAsStream lookup) according to the following rules: @@ -264,8 +264,8 @@ It is not an error for the same aspect to be defined to the weaver in more than one visible META-INF/aop.xml file. - However, if a concrete aspect - is defined in more than aop.xml file then an error will be issued. + However, if the same concrete aspect + is defined in more than one aop.xml file then an error will be issued. A concrete aspect defined in this way will be used to weave types loaded by the class loader that loaded the aop.xml file in which it was defined. @@ -323,7 +323,7 @@ ]]> This aspect (in either style) can be made concrete using META-INF/aop.xml. - It defines the abstract pointcut within(). When using this mechanism the + It defines the abstract pointcut scope(). When using this mechanism the following rules apply: The parent aspect must be abstract. It can be an @AspectJ or a @@ -336,15 +336,26 @@ The concrete aspect may not implement methods so the abstract aspect it extends may not contain any abstract methods. + + + + A limitation of the implementation of this feature in AspectJ 1.5.0 is that aspects defined using + aop.xml are not exposed to the weaver. This means that they are not affected by advice and ITDs defined in + other aspects. Support for this capability will be considered in a future release. + + + If more complex aspect inheritance is required use regular aspect inheritance instead of XML. The following XML definition shows a valid concrete sub-aspect for the abstract aspects above: - - - + + + + + ]]> @@ -385,8 +396,10 @@ - + + + ]]> -- cgit v1.2.3