[aspectwerkz-dev] [jira] Deleted: (AW-70) serializable mode for target objects with mixins
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
[ http://jira.codehaus.org/browse/AW-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
[email protected] deleted AW-70:
--------------------------------
> serializable mode for target objects with mixins
> ------------------------------------------------
>
> Key: AW-70
> URL: http://jira.codehaus.org/browse/AW-70
> Project: AspectWerkz
> Issue Type: New Feature
> Reporter: Jonas Boner
> Assignee: Jonas Boner
>
> The current mixin implementation does not allow the mixins to be serialized when the target object is serialized. This will be problem when used f.e. with RMI and object databases such as JISP etc.
> This could be solved by adding a serializable mode to the mixins. This solution will remove all dynamicity for the mixins, e.g. swapping the implementation at runtime.
> Proposed solution (psuedo code):
> /**
> * Target class Foo has a mixin with the name 'mymixin1'
> */
> public class Foo {
> /**
> * added to the class at transformation time
> */
> private final Map ___mixins = new HashMap();
> /**
> * constructor transformed.
> */
> public Foo() {
> // retrieve all the mixins for the class
> ___mixins.put("mymixin1", ___system.getIntroduction("mymixin1");
> ___mixins.put("mymixin2", ___system.getIntroduction("mymixin2");
> }
> /**
> * added to the class at transformation time
> */
> public String methodInMixin1() {
> return (String)___mixins.get("mymixin1").getMethods()[0].invoke(
> ___mixins.get("mymixin1").getInstance(),
> new Object[]{}
> );
> }
> }
--
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