Tabnine Logo
com.ocpsoft.pretty.faces.spi
Code IndexAdd Tabnine to your IDE (free)

How to use com.ocpsoft.pretty.faces.spi

Best Java code snippets using com.ocpsoft.pretty.faces.spi (Showing top 18 results out of 315)

origin: ocpsoft/rewrite

  public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right)
  {
   return left.getPriority() - right.getPriority();
  }
});
origin: com.ocpsoft/prettyfaces-jsf2

/**
* 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.");
}
origin: ocpsoft/prettyfaces

Boolean result = detector.isDevelopmentMode(servletContext);
origin: ocpsoft/prettyfaces

for (ConfigurationProvider p : configLoader)
 builder.addFromConfig(p.loadConfiguration(servletContext));
config = parenting.processConfiguration(servletContext, config);
 config = p.processConfiguration(servletContext, config);
config = validating.processConfiguration(servletContext, config);
origin: ocpsoft/prettyfaces

boolean initialized = resolver.init(servletContext, classLoader);
origin: ocpsoft/rewrite

for (ConfigurationProvider p : configLoader)
 builder.addFromConfig(p.loadConfiguration(servletContext));
config = parenting.processConfiguration(servletContext, config);
 config = p.processConfiguration(servletContext, config);
config = validating.processConfiguration(servletContext, config);
origin: ocpsoft/prettyfaces

  public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right)
  {
   return left.getPriority() - right.getPriority();
  }
});
origin: ocpsoft/rewrite

Boolean result = detector.isDevelopmentMode(servletContext);
origin: ocpsoft/prettyfaces

/**
* 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.");
}
origin: com.ocpsoft/prettyfaces-jsf2

boolean initialized = resolver.init(servletContext, classLoader);
origin: com.ocpsoft/prettyfaces-jsf2

for (ConfigurationProvider p : configLoader)
 builder.addFromConfig(p.loadConfiguration(servletContext));
config = parenting.processConfiguration(servletContext, config);
 config = p.processConfiguration(servletContext, config);
config = validating.processConfiguration(servletContext, config);
origin: com.ocpsoft/prettyfaces-jsf2

  public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right)
  {
   return left.getPriority() - right.getPriority();
  }
});
origin: com.ocpsoft/prettyfaces-jsf2

Boolean result = detector.isDevelopmentMode(servletContext);
origin: ocpsoft/prettyfaces

/**
* 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.");
}
origin: ocpsoft/prettyfaces

boolean initialized = resolver.init(servletContext, classLoader);
origin: ocpsoft/prettyfaces

for (ConfigurationProvider p : configLoader)
 builder.addFromConfig(p.loadConfiguration(servletContext));
config = parenting.processConfiguration(servletContext, config);
 config = p.processConfiguration(servletContext, config);
config = validating.processConfiguration(servletContext, config);
origin: ocpsoft/prettyfaces

  public int compare(DevelopmentModeDetector left, DevelopmentModeDetector right)
  {
   return left.getPriority() - right.getPriority();
  }
});
origin: ocpsoft/prettyfaces

Boolean result = detector.isDevelopmentMode(servletContext);
com.ocpsoft.pretty.faces.spi

Most used classes

  • ConfigurationPostProcessor
    Defines the interface to be used in performing post-config-parse step processing.
  • ConfigurationProvider
  • DevelopmentModeDetector
    This SPI is used by PrettyFaces to detect whether it should run in development mode.
  • ELBeanNameResolver
    Implementations of this interfaces help PrettyFaces in getting the name a bean has in the EL contex
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now