[aspectwerkz-dev] [jira] Deleted: (AW-42) Let introductions get the target object or class

"[email protected] (JIRA)" <jira-yCVjj/[email protected]> Fri, 3 Aug 2007 07:09:51 +1000 (EST)
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
     [ http://jira.codehaus.org/browse/AW-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

[email protected] deleted AW-42:
--------------------------------


> Let introductions get the target object or class
> ------------------------------------------------
>
>                 Key: AW-42
>                 URL: http://jira.codehaus.org/browse/AW-42
>             Project: AspectWerkz
>          Issue Type: New Feature
>            Reporter: Carlos Villela
>            Assignee: Jonas Boner
>
> Add support for a getTargetObject and/or getTargetClass-like method for introductions, so they can get the target object/class for more coupled manipulation.
> This feature has some interesting uses, for example:
> public class A implements IA {
>   public void doStuff() {
>     // ...
>     String data = ((IB)getTargetObject()).getData();
>     // ...
>   }
> }
> public class B1 implements IB {
>   public String getData() {
>     // ...
>   }
> }
> public class B2 implements IB {
>   public String getData() {
>     // ...
>   }
> }
> In this situation, A is coupled to IB, and any implementation of IB can be chosen at compile-time or runtime (using the swapImplementation method), thus helping sepatate concerns on lots of situations.

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email