Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Default implementationsinaninterface causingcreation of extra methods in an interface

> Antti,
> 
> Could you use this idiom?
> 
> aspect Foo {
>     public interface InternalImplIface extends RealIface {}
> 
>     // Make your ITD's on InternalImplIface
> 
>     declare parents: (RealIface+ && !RealIface) implements
> InternalImplIface;
> }
> 
> Now for any implementers of RealIface that AspectJ controls, 
> you get the
> ITD's. But for pure Java clients of RealIface, they don't see 
> additional
> members.

  Cool! Why did I not think of this myself... Thanks a lot!



        -Antti-




 


Back to the top