You're absolutely right!

Thank you. :-)



On Mon, 2007-05-07 at 13:16 +0800, Niclas Hedhman wrote:
> On 5/7/07, David Leangen <[EMAIL PROTECTED]> wrote:
> 
> > Is there anything special I need to know about annotations in osgi?
> 
> None...
> 
> > My problem is that I have a Method with annotations, but during runtime
> 
> You need to set the Retention in the Annotation itself, which is done
> with Annotation of the Annotation. Example;
> 
> @Retention( RetentionPolicy.RUNTIME )
> @Target( ElementType.TYPE )
> @Documented
> @Inherited
> public @interface ModifiedBy
> {
>    Class[] value();
> }
> 
> 
> Cheers
> Niclas

_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to