Re: [aspectwerkz-dev] include element in aop.xml

eu <eu-E/[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
Alex wrote:

> include and exclude are "className.startWith" tests mainly to allow fast
> filtering.

   Is it already support concrete classes?

> I am not sure it would be good to allow for more complex "include", since
> those are handled by your pointcut definition anyway
> (execution(javax.sql.DataSource+.*(..)  etc)
> What do you need exactly ?

   Well, I don't want to instrument entire Weblogic or Oracle code just 
to bind advices to all concrete DataSource implementations in the 
example above. It will definetely require type checking for all super 
types of the current class. In case if super class/interface already 
loaded (not sure how to check that) it should be easy, but if it is not 
loaded yet it has to be checked hierarchically.

   It would be ok for me to have the following syntax (if you think that 
it will help to speed it up):

   <include package="weblogic" class="javax.sql.DataSource+"/>
   <include package="oracle" class="javax.sql.DataSource+"/>

   regards,
   Eugene


> ----- Original Message ----- 
> From: "eu" <eu-E/[email protected]>
> To: <[email protected]>
> Sent: Wednesday, July 14, 2004 9:35 PM
> Subject: [aspectwerkz-dev] include element in aop.xml
> 
> 
> 
>>Hi,
>>
>>   I wonder if it will be possible to implement additional feature for
>>include/exclude elements in aop.xml.
>>
>>   I need to intercept calls to subclasses of the well known interface
>>(e.g. PreparedStatement.execute() or DataSource.create()), so I wonder
>>if include can use similar syntax to pointcut definition. For example
>>
>>   <include class="javax.sql.DataSource+"/>
>>
>>   to instrument all subclasses (including vendor specific from WLS or
>>Oracle)
>>
>>   <include class="java.io.File"/>
>>
>>   to instrument concrete class (File maybe a bad example, but anyway).
>>
>>   regards,
>>   Eugene
>>
>>
>>
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.