@Override public FacesConfig getAnnotationsFacesConfig(ExternalContext ectx, boolean metadataComplete) { return getAnnotationConfigurator().createFacesConfig(ectx, metadataComplete); }
try for (String systemId : getConfigFilesList(ectx)) if (url != null) validateFacesConfig(ectx, url); appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, systemId));
List<String> contextSpecifiedList = getConfigFilesList(ectx); if (url != null) FacesConfig fc = parseFacesConfig(ectx, filePath, url); if (fc != null) if (url != null) FacesConfig fc = parseFacesConfig(ectx, filePath, url); if (fc != null)
if (url != null) validateFacesConfig(ectx, url); log.info("Reading standard config " + STANDARD_FACES_CONFIG_RESOURCE); FacesConfig facesConfig = getUnmarshaller(ectx).getFacesConfig(stream, STANDARD_FACES_CONFIG_RESOURCE); stream.close(); return facesConfig;
validateFacesConfig(ectx, url); stream = openStreamWithoutCache(url); if (log.isLoggable(Level.INFO)) appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, url.toExternalForm()));
private FacesConfigurationProvider resolveFacesConfigurationProviderFromService( ExternalContext externalContext) throws ClassNotFoundException, NoClassDefFoundError, InstantiationException, IllegalAccessException, InvocationTargetException, PrivilegedActionException { List<String> classList = (List<String>) externalContext.getApplicationMap().get(FACES_CONFIGURATION_PROVIDER_LIST); if (classList == null) { classList = ServiceProviderFinderFactory.getServiceProviderFinder(externalContext).getServiceProviderList(FACES_CONFIGURATION_PROVIDER); externalContext.getApplicationMap().put(FACES_CONFIGURATION_PROVIDER_LIST, classList); } return ClassUtils.buildApplicationObject(FacesConfigurationProvider.class, classList, new DefaultFacesConfigurationProvider()); } }
FacesConfig facesConfig = getUnmarshaller(ectx).getFacesConfig( xmlReader); facesConfigList.add(facesConfig);
@Override public FacesConfig getWebAppFacesConfig(final ExternalContext ectx) { final InputStream stream = ectx.getResourceAsStream("/WEB-INF/faces-config.xml"); if (stream != null && isEmpty(stream)) { return new org.apache.myfaces.config.impl.digester.elements.FacesConfig(); } // we can't just check the emptyness after the exception // because otherwise an exception is logged because of the parser error handler return super.getWebAppFacesConfig(ectx); }
if (url != null) validateFacesConfig(ectx, url); webAppConfig = getUnmarshaller(ectx).getFacesConfig(stream, DEFAULT_FACES_CONFIG);
validateFacesConfig(ectx, url); stream = openStreamWithoutCache(url); if (log.isLoggable(Level.INFO)) appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, url.toExternalForm()));
private FacesConfigurationProvider resolveFacesConfigurationProviderFromService( ExternalContext externalContext) throws ClassNotFoundException, NoClassDefFoundError, InstantiationException, IllegalAccessException, InvocationTargetException, PrivilegedActionException { List<String> classList = (List<String>) externalContext.getApplicationMap().get(FACES_CONFIGURATION_PROVIDER_LIST); if (classList == null) { classList = ServiceProviderFinderFactory.getServiceProviderFinder(externalContext).getServiceProviderList(FACES_CONFIGURATION_PROVIDER); externalContext.getApplicationMap().put(FACES_CONFIGURATION_PROVIDER_LIST, classList); } return ClassUtils.buildApplicationObject(FacesConfigurationProvider.class, classList, new DefaultFacesConfigurationProvider()); } }
if (url != null) validateFacesConfig(ectx, url); webAppConfig = getUnmarshaller(ectx).getFacesConfig(stream, DEFAULT_FACES_CONFIG);
try for (String systemId : getConfigFilesList(ectx)) if (url != null) validateFacesConfig(ectx, url); appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, systemId));
validateFacesConfig(ectx, url); stream = openStreamWithoutCache(url); if (log.isLoggable(Level.INFO)) appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, url.toExternalForm()));
@Override public FacesConfig getAnnotationsFacesConfig(ExternalContext ectx, boolean metadataComplete) { return getAnnotationConfigurator().createFacesConfig(ectx, metadataComplete); }
private FacesConfigurationProvider resolveFacesConfigurationProviderFromService( ExternalContext externalContext) throws ClassNotFoundException, NoClassDefFoundError, InstantiationException, IllegalAccessException, InvocationTargetException, PrivilegedActionException { List<String> classList = (List<String>) externalContext.getApplicationMap().get(FACES_CONFIGURATION_PROVIDER_LIST); if (classList == null) { classList = ServiceProviderFinderFactory.getServiceProviderFinder(externalContext). getServiceProviderList(FACES_CONFIGURATION_PROVIDER); externalContext.getApplicationMap().put(FACES_CONFIGURATION_PROVIDER_LIST, classList); } return ClassUtils.buildApplicationObject(FacesConfigurationProvider.class, classList, new DefaultFacesConfigurationProvider()); } }
if (url != null) validateFacesConfig(ectx, url); webAppConfig = getUnmarshaller(ectx).getFacesConfig(stream, DEFAULT_FACES_CONFIG);
try for (String systemId : getConfigFilesList(ectx)) if (url != null) validateFacesConfig(ectx, url); appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, systemId));
@Override public FacesConfig getAnnotationsFacesConfig(ExternalContext ectx, boolean metadataComplete) { return getAnnotationConfigurator().createFacesConfig(ectx, metadataComplete); }
if (url != null) validateFacesConfig(ectx, url); log.info("Reading standard config " + STANDARD_FACES_CONFIG_RESOURCE); FacesConfig facesConfig = getUnmarshaller(ectx).getFacesConfig(stream, STANDARD_FACES_CONFIG_RESOURCE); stream.close(); return facesConfig;