Hi,
I use this:
Component page = componentSource.getPage(pageName);
Secured secured = page.getClass().getAnnotation(Secured.class);
Secured is my own annotation. It works just fine. Remember to put
@Retention(RetentionPolicy.RUNTIME) on your annotation.
-Filip
Adam Zimowski skrev:
I'm annotating page classes with my own annotations, but when I
retrieve page from the cache the page does not carry my annotation.
This is understandable because T5 creates them on its own (javassist
magic, etc) but if I need Annotation instance, not the String value
from ComponentModel.getMeta() how could I get it without doing
Class.forName() ?
-adam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]