protected ClassFinder createMyFacesClassFinder(List<FacesConfig> facesConfigs, Bundle bundle) throws DeploymentException { List<Class<?>> managedBeanClasses = new ArrayList<Class<?>>(); for (FacesConfig facesConfig : facesConfigs) { for (ManagedBean managedBean : facesConfig.getManagedBeans()) { String className = managedBean.getManagedBeanClassName().trim(); Class<?> clas; try { clas = bundle.loadClass(className); while (clas != null) { managedBeanClasses.add(clas); clas = clas.getSuperclass(); } } catch (ClassNotFoundException e) { log.warn("MyFacesModuleBuilderExtension: Could not load managed bean class: " + className); } } } return new ClassFinder(managedBeanClasses); }
List<String> names = new ArrayList<String>(); for (OrderSlot slot : resource.getOrdering().getAfterList()) for (int i = sortedList.size()-1 ; i >=0 ; i--) if (names.contains(sortedList.get(i).getName()))
for (Factory factory : config.getFactories()) components.putAll(config.getComponents()); validators.putAll(config.getValidators()); behaviors.addAll (config.getBehaviors()); for (Application application : config.getApplications()) for (Converter converter : config.getConverters()) for (RenderKit renderKit : config.getRenderKits()) lifecyclePhaseListeners.addAll(config.getLifecyclePhaseListener()); managedBeans.addAll(config.getManagedBeans()); navigationRules.addAll(config.getNavigationRules()); facesVersion = config.getVersion(); namedEvents.addAll(config.getNamedEvents());
for (Factory factory : config.getFactories()) components.putAll(config.getComponents()); validators.putAll(config.getValidators()); behaviors.addAll (config.getBehaviors()); for (Application application : config.getApplications()) for (Converter converter : config.getConverters()) for (RenderKit renderKit : config.getRenderKits()) for (FacesConfigExtension extension : config.getFacesConfigExtensions()) componentTagDeclarations.addAll(config.getComponentTagDeclarations().values()); faceletTagLibraries.addAll(config.getFaceletTagLibraryList()); lifecyclePhaseListeners.addAll(config.getLifecyclePhaseListener()); managedBeans.addAll(config.getManagedBeans()); navigationRules.addAll(config.getNavigationRules()); facesVersion = config.getVersion(); namedEvents.addAll(config.getNamedEvents()); facesFlowDefinitions.addAll(config.getFacesFlowDefinitions()); protectedViewUrlPatterns.addAll(config.getProtectedViewsUrlPatternList()); resourceResolvers.addAll(config.getResourceResolversList()); for (FacesConfigExtension extension : config.getFacesConfigExtensions()) for (FacesConfigExtension extension : config.getFacesConfigExtensions())
throws FacesException if (webAppConfig != null && webAppConfig.getAbsoluteOrdering() != null) if (webAppConfig.getOrdering() != null) List<OrderSlot> slots = webAppConfig.getAbsoluteOrdering().getOrderList(); for (FacesConfig resource : appConfigResources) if ((resource.getName() == null) || (resource.getName() != null && !containsResourceInSlot(slots, resource.getName()))) for (OrderSlot slot : webAppConfig.getAbsoluteOrdering().getOrderList()) if (resource.getAbsoluteOrdering() != null) "configuration resource "+resource.getName()+". " + "This description will be ignored and the actions described " + "in <ordering> elements will be taken into account instead.");
if(webAppFacesConfig != null) metadataComplete = Boolean.valueOf(webAppFacesConfig.getMetadataComplete());
for (Factory factory : config.getFactories()) components.putAll(config.getComponents()); validators.putAll(config.getValidators()); behaviors.addAll (config.getBehaviors()); for (Application application : config.getApplications()) for (Converter converter : config.getConverters()) for (RenderKit renderKit : config.getRenderKits()) for (FacesConfigExtension extension : config.getFacesConfigExtensions()) lifecyclePhaseListeners.addAll(config.getLifecyclePhaseListener()); managedBeans.addAll(config.getManagedBeans()); navigationRules.addAll(config.getNavigationRules()); facesVersion = config.getVersion(); namedEvents.addAll(config.getNamedEvents());
throws FacesException if (webAppConfig != null && webAppConfig.getAbsoluteOrdering() != null) if (webAppConfig.getOrdering() != null) List<OrderSlot> slots = webAppConfig.getAbsoluteOrdering().getOrderList(); for (FacesConfig resource : appConfigResources) if ((resource.getName() == null) || (resource.getName() != null && !containsResourceInSlot(slots, resource.getName()))) for (OrderSlot slot : webAppConfig.getAbsoluteOrdering().getOrderList()) if (resource.getAbsoluteOrdering() != null) "configuration resource "+resource.getName()+". " + "This description will be ignored and the actions described " + "in <ordering> elements will be taken into account instead.");
if(webAppFacesConfig != null) metadataComplete = Boolean.valueOf(webAppFacesConfig.getMetadataComplete());
List<String> names = new ArrayList<String>(); for (OrderSlot slot : resource.getOrdering().getAfterList()) for (int i = sortedList.size()-1 ; i >=0 ; i--) if (names.contains(sortedList.get(i).getName()))
throws FacesException if (webAppConfig != null && webAppConfig.getAbsoluteOrdering() != null) if (webAppConfig.getOrdering() != null) List<OrderSlot> slots = webAppConfig.getAbsoluteOrdering().getOrderList(); for (FacesConfig resource : appConfigResources) if ((resource.getName() == null) || (resource.getName() != null && !containsResourceInSlot(slots, resource.getName()))) for (OrderSlot slot : webAppConfig.getAbsoluteOrdering().getOrderList()) if (resource.getAbsoluteOrdering() != null) "configuration resource "+resource.getName()+". " + "This description will be ignored and the actions described " + "in <ordering> elements will be taken into account instead.");
if(webAppFacesConfig != null) metadataComplete = Boolean.valueOf(webAppFacesConfig.getMetadataComplete());
List<String> names = new ArrayList<String>(); for (OrderSlot slot : resource.getOrdering().getAfterList()) for (int i = sortedList.size()-1 ; i >=0 ; i--) if (names.contains(sortedList.get(i).getName()))
if (webAppFacesConfig == null || !Boolean.parseBoolean(webAppFacesConfig.getMetadataComplete())) { annotationsFacesConfig = getJSFAnnotationFacesConfig(earContext, webModule, bundle, metaInfConfigurationResources);
List<String> names = new ArrayList<String>(); for (OrderSlot slot : resource.getOrdering().getBeforeList()) if (resource.getOrdering().getBeforeList().size() > 1) for (int i = 0; i < sortedList.size() ; i++) if (names.contains(sortedList.get(i).getName()))
List<String> names = new ArrayList<String>(); for (OrderSlot slot : resource.getOrdering().getBeforeList()) if (resource.getOrdering().getBeforeList().size() > 1) for (int i = 0; i < sortedList.size() ; i++) if (names.contains(sortedList.get(i).getName()))
List<String> names = new ArrayList<String>(); for (OrderSlot slot : resource.getOrdering().getBeforeList()) if (resource.getOrdering().getBeforeList().size() > 1) for (int i = 0; i < sortedList.size() ; i++) if (names.contains(sortedList.get(i).getName()))