Bug 160296 - Custom JoinPoint factory
Summary: Custom JoinPoint factory
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Runtime (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 08:27 EDT by Matthew Webster CLA
Modified: 2006-10-18 03:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Webster CLA 2006-10-10 08:27:58 EDT
The interface would allow an aspect to supply a factory for JoinPoint objects to be passed to the advice it declares. It would only allow custom JoinPoint rather than custom JoinPoint.Static part instances as the latter must be shared and duplication would be expensive and complex to manage. The interface might take to form of a JoinPoinFactoryProvider Java interface where the aspect returns a sub-class of org.aspectj.runtime.reflect.Factory (although this class is currently final and rather cryptic/complex): 

public aspect FlightRecorder implements JoinPointFactoryProvider { 

    purblic Factory getJoinPointFactory (...) { 
        ... 
    } 

} 

See http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg06808.html for possible uses cases.