[JSR308] Wrapper types

Artemus Harper subanark at gmail.com
Fri Feb 29 20:20:06 EST 2008

Is there any plan to add wrapper types for each of these annotations.
public class ReadonlyWrapper<T extends @Readonly Object>
   private final T value;
   public ReadonlyWrapper(T value)
   { this.value = value; }
   public T unwrap()
   { return value; }

which would allow encapsulating the meta data at runtime (so I could put
these in List<Object> or call methods reflectively if the reflection API
auto unwrapped this).
Artemus Harper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.csail.mit.edu/pipermail/jsr308/attachments/20080229/1e45ebfb/attachment.htm 

More information about the JSR308 mailing list