[jboss-dev-forums] [Design the new POJO MicroContainer] - Adding applyMetaData method to KernelControllerContext
alesj
do-not-reply at jboss.com
Fri Aug 3 06:28:33 EDT 2007
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#4070480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070480
More information about the jboss-dev-forums
mailing list