((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
addManagedBean(bean);
}
}
PageBean annoPageBean = getTestJavaClass().getAnnotation(PageBean.class);
if (annoPageBean != null)
{
if (facesConfig == null)
{
facesConfig = new org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl();
}
org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
bean.setBeanClass(annoPageBean.clazz().getName());
bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
bean.setScope(annoPageBean.scope() == null ? "request" : annoPageBean.scope());
bean.setEager(Boolean.toString(annoPageBean.eager()));
((org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl)facesConfig).
addManagedBean(bean);
}
jsfConfiguration.setAnnotationFacesConfig(facesConfig);