PostConstruct postConstructAn =
(PostConstruct)ainfo.getAnnotation();
Method annMethod = (Method)ainfo.getAnnotatedElement();
String pcMethodName = annMethod.getName();
String pcClassName = annMethod.getDeclaringClass().getName();
for (ResourceContainerContext rcContext : rcContexts) {
LifecycleCallbackDescriptor postConstructDesc =
new LifecycleCallbackDescriptor();
postConstructDesc.setLifecycleCallbackClass(pcClassName);
postConstructDesc.setLifecycleCallbackMethod(pcMethodName);
// override by xml is handled in addPostConstructDescriptor
rcContext.addPostConstructDescriptor(postConstructDesc);
}
return getDefaultProcessedResult();