[jboss-jira] [JBoss JIRA] Commented: (JBAOP-470) Add a pointcut construction to match the field of a Class as being a type

Flavia Rainone (JIRA) jira-events at lists.jboss.org
Mon Oct 1 09:26:41 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBAOP-470?page=comments#action_12379573 ] 
            
Flavia Rainone commented on JBAOP-470:
--------------------------------------

Consider the typedef expression:
<typedef name="TD" expr="(class(POJO.field)" />

Where POJO class follows:
public class POJO
{
  public POJO2 field;
}

I can think of the following approache to identify the matching objects:
- add a field "Collection<ClassName> isInside<ClassName>_<fieldName>" on the class that is the type of the field <ClassName>.<fieldName> especfied on the pointcut expression. This field would track whether an object is the value  <ClassName>.<fieldName> for one or more instances of ClassName. The goal is to identify positively only when isInside<ClassName>_<fieldName>.size() is larger then 0.

Probably there are other solutions beside this one.

> Add a pointcut construction to match the field of a Class as being a type
> -------------------------------------------------------------------------
>
>                 Key: JBAOP-470
>                 URL: http://jira.jboss.com/jira/browse/JBAOP-470
>             Project: JBoss AOP
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Documentation
>            Reporter: Flavia Rainone
>
> The idea is to allow the especification of a field value of a class as being the type of any pointcut expression.
> The idea is to allow 
> my.package.MyClass.field
> whenever the following constructs are accepted:
> - the name of a class
> - annotated (@)
> - implements
> - type def 
> - instanceof

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list