public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right) { return left.getPriority() - right.getPriority(); } });
/** * Find the bean name of the supplied class. This method will try to resolve * the bean name by calling all registered implementations of * {@link ELBeanNameResolver}. This method will either return the resolved name * or throw an {@link IllegalStateException}, if no resolver knows the name * of the bean. * * @param clazz The class of the bean * @return The resolved bean name * @throws IllegalStateException If the name of the bean cannot be resolved */ public String findBeanName(Class<?> clazz) throws IllegalStateException { // process all resolvers for (ELBeanNameResolver resolver : resolvers) { // try to resolve bean name with current resolver String name = resolver.getBeanName(clazz); // return the bean name, if the resolver was successful if (name != null) { return name; } } // No resolver knows the name of the bean throw new IllegalStateException("Cannot find name of bean '" + clazz.getName() + "'! You should place a @URLBeanName annotation on this class to let PrettyFaces know its name."); }
Boolean result = detector.isDevelopmentMode(servletContext);
for (ConfigurationProvider p : configLoader) builder.addFromConfig(p.loadConfiguration(servletContext)); config = parenting.processConfiguration(servletContext, config); config = p.processConfiguration(servletContext, config); config = validating.processConfiguration(servletContext, config);
boolean initialized = resolver.init(servletContext, classLoader);
for (ConfigurationProvider p : configLoader) builder.addFromConfig(p.loadConfiguration(servletContext)); config = parenting.processConfiguration(servletContext, config); config = p.processConfiguration(servletContext, config); config = validating.processConfiguration(servletContext, config);
public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right) { return left.getPriority() - right.getPriority(); } });
Boolean result = detector.isDevelopmentMode(servletContext);
/** * Find the bean name of the supplied class. This method will try to resolve * the bean name by calling all registered implementations of * {@link ELBeanNameResolver}. This method will either return the resolved name * or throw an {@link IllegalStateException}, if no resolver knows the name * of the bean. * * @param clazz The class of the bean * @return The resolved bean name * @throws IllegalStateException If the name of the bean cannot be resolved */ public String findBeanName(Class<?> clazz) throws IllegalStateException { // process all resolvers for (ELBeanNameResolver resolver : resolvers) { // try to resolve bean name with current resolver String name = resolver.getBeanName(clazz); // return the bean name, if the resolver was successful if (name != null) { return name; } } // No resolver knows the name of the bean throw new IllegalStateException("Cannot find name of bean '" + clazz.getName() + "'! You should place a @URLBeanName annotation on this class to let PrettyFaces know its name."); }
boolean initialized = resolver.init(servletContext, classLoader);
for (ConfigurationProvider p : configLoader) builder.addFromConfig(p.loadConfiguration(servletContext)); config = parenting.processConfiguration(servletContext, config); config = p.processConfiguration(servletContext, config); config = validating.processConfiguration(servletContext, config);
public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right) { return left.getPriority() - right.getPriority(); } });
Boolean result = detector.isDevelopmentMode(servletContext);
/** * Find the bean name of the supplied class. This method will try to resolve * the bean name by calling all registered implementations of * {@link ELBeanNameResolver}. This method will either return the resolved name * or throw an {@link IllegalStateException}, if no resolver knows the name * of the bean. * * @param clazz The class of the bean * @return The resolved bean name * @throws IllegalStateException If the name of the bean cannot be resolved */ public String findBeanName(Class<?> clazz) throws IllegalStateException { // process all resolvers for (ELBeanNameResolver resolver : resolvers) { // try to resolve bean name with current resolver String name = resolver.getBeanName(clazz); // return the bean name, if the resolver was successful if (name != null) { return name; } } // No resolver knows the name of the bean throw new IllegalStateException("Cannot find name of bean '" + clazz.getName() + "'! You should place a @URLBeanName annotation on this class to let PrettyFaces know its name."); }
boolean initialized = resolver.init(servletContext, classLoader);
for (ConfigurationProvider p : configLoader) builder.addFromConfig(p.loadConfiguration(servletContext)); config = parenting.processConfiguration(servletContext, config); config = p.processConfiguration(servletContext, config); config = validating.processConfiguration(servletContext, config);
public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right) { return left.getPriority() - right.getPriority(); } });
Boolean result = detector.isDevelopmentMode(servletContext);