From: avasseur Date: Mon, 7 Nov 2005 10:04:00 +0000 (+0000) Subject: aspects/include handling and doc update as per #115275 X-Git-Tag: V1_5_0RC1~244 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e2db71535154c6564fb30bebf2f51fc321a94f7c;p=aspectj.git aspects/include handling and doc update as per #115275 --- diff --git a/docs/devGuideDB/ltw.xml b/docs/devGuideDB/ltw.xml index c1e94f6c2..b7b6d9b73 100644 --- a/docs/devGuideDB/ltw.xml +++ b/docs/devGuideDB/ltw.xml @@ -167,11 +167,12 @@ - + - + @@ -212,14 +213,20 @@ - The aspects element may optionally contain one or more include and - exclude elements (by default, all defined aspects are used for weaving). + The aspects element may optionally contain one or more include and + exclude elements (by default, all defined aspects are used for weaving). Specifying include or exclude elements restricts the set of defined aspects to be used for weaving to those that are matched by an include - pattern, but not by an exclude pattern. The 'within' attribute accepts + pattern, but not by an exclude pattern. The within attribute accepts a type pattern of the same form as a within pcd, except that && and || are replaced by 'AND' and 'OR'. + + Note that include and exclude affects the declared list of aspects (or concrete-aspect) defined in this + sole aop.xml and has no side effect on other aop.xml files. + Also note it is required to use aspect or concrete-aspect elements and that include does not + mean "pick any aspect you 'll find" - as the aspect list must be known by the weaver. + The weaver element is used to pass options to the weaver and to specify @@ -518,6 +525,11 @@ Note that dynamic proxy representations are exposed to the LTW infrastructure and are not considered a special case. + + + Some lint options behave differently when used under load-time weaving. The adviceDidNotMatch + won't be handled as a warn (as during compile time) but as an info message. + diff --git a/loadtime/src/aspectj_1_5_0.dtd b/loadtime/src/aspectj_1_5_0.dtd index 060962745..88856f7e3 100644 --- a/loadtime/src/aspectj_1_5_0.dtd +++ b/loadtime/src/aspectj_1_5_0.dtd @@ -92,16 +92,13 @@ dump aspects ********************************************************************************************************************************* [aspects] defines a set of aspects -TODO we were about to use include but it is already used for weaver scope with "within" which is not relevant -for aspects. I (AV) decided to use only aspect and provide include= thru name, and exclude= as exclude. -see sample. +Note: include only include among Union{aspect, concrete-aspect} WITHIN THIS SOLE aop.xml ******************************************************************************************************************************-->