diff options
author | aclement <aclement> | 2006-10-18 14:46:29 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-10-18 14:46:29 +0000 |
commit | db68044fe8ea0f43a5e090a67b9410f4c334bff6 (patch) | |
tree | 02010767f1a7500610a58abfe41e71c6539ea6f5 /docs | |
parent | 1a2eef067f87e9037bd39f20d4c682c642689de8 (diff) | |
download | aspectj-db68044fe8ea0f43a5e090a67b9410f4c334bff6.tar.gz aspectj-db68044fe8ea0f43a5e090a67b9410f4c334bff6.zip |
test and fix for 123423: getWithinTypeName() for ptw aspects
Diffstat (limited to 'docs')
-rw-r--r-- | docs/adk15ProgGuideDB/pertypewithin.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/adk15ProgGuideDB/pertypewithin.xml b/docs/adk15ProgGuideDB/pertypewithin.xml index 8bab12b5d..4a5e9bbab 100644 --- a/docs/adk15ProgGuideDB/pertypewithin.xml +++ b/docs/adk15ProgGuideDB/pertypewithin.xml @@ -44,6 +44,21 @@ </para> <para> + In addition, <literal>pertypewithin</literal> aspects have a + <literal>getWithinTypeName</literal> method that can be called + to return the package qualified name of the type for which the + aspect instance has been created. + </para> + + <programlisting><![CDATA[ + /** + * return the package qualified name (eg. com.foo.MyClass) of the type + * for which the aspect instance has been instantiated. + */ + public String getWithinTypeName() + ]]></programlisting> + + <para> In common with the other per-clause instantiation models, the execution of any advice declared within a <literal>pertypewithin</literal> aspect is conditional upon an implicit pointcut condition. In this case, that |