Without being abstract, and without IDE support this would throw errors as
the class/source doesn't implement the List interface, but lombok could (if
possible) drop the abstract bytecode marker, and use an implementation
mentioned in the annotation.

public abstract class Something extends Whatever implements List {
  @Delegate(implementation=MyList.class)
  private List list;
}

And maybe from a factory to give some runtime mixin flexability...

public abstract class Something extends Whatever implements List {
  @Delegate(implementationFactory=MyListFactory.class)
  private List list;
}




-- 
Pull me down under...

On Thu, Aug 27, 2009 at 11:17 AM, Reinier Zwitserloot <reini...@gmail.com>wrote:

> Simple.
>
> public class Something extends Whatever implements List {
>    private @Delegate List listDelegate = new ArrayList();
> }
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to