}
List<PageBeanDescriptor> beanEntries = viewDefinitionEntry.getPageBeanDescriptors();
Object bean;
RequestLifecycleCallbackEntry phasesLifecycleCallbackEntry;
List<Method> lifecycleCallbacks;
for(PageBeanDescriptor beanEntry : beanEntries)
{
if(!(beanEntry instanceof LifecycleAwarePageBeanDescriptor))
{
continue;
}
phasesLifecycleCallbackEntry = ((LifecycleAwarePageBeanDescriptor)beanEntry)
.getPhasesLifecycleCallback(phaseEvent.getPhaseId());
if(phasesLifecycleCallbackEntry == null)
{
continue;
}
if(beforePhase)
{
lifecycleCallbacks = phasesLifecycleCallbackEntry.getBeforePhaseCallbacks();
}
else
{
lifecycleCallbacks = phasesLifecycleCallbackEntry.getAfterPhaseCallbacks();
}
if(lifecycleCallbacks.isEmpty())
{
continue;