I've added
| /**
| * Do apply meta data.
| *
| * @throws Throwable for any error
| */
| void applyMetaData() throws Throwable;
|
to hide the details of applying annotations.
I've reused the existing MetaDataVisitor impls that reside in
AbstractKernelControllerContext + added a flag if context was already processed for
annotations.
| public void applyMetaData() throws Throwable
| {
| if (areAnnotationsProcessed == false)
| {
| // handle custom annotations
| MetaDataVisitor annotationsVisitor = new
AnnotationMetaDataVisitor(metaData);
|
BeanAnnotationAdapterFactory.getBeanAnnotationAdapter().applyAnnotations(annotationsVisitor);
| areAnnotationsProcessed = true;
| }
| }
|
Is this method valid?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070480#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...