config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/annotation/PrettyAnnotationHandler.java
private void processPrettyBeanAnnotation(Class<?> clazz)
   {

      // get reference to @URLMapping annotation
      URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);

      // process annotation if it exists
      if (prettyBean != null)
      {

         // log class name
         if (log.isTraceEnabled())
         {
            log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
         }

         // add bean to map
         beanNameMap.put(clazz, prettyBean.value());

      }

   }
private void processPrettyBeanAnnotation(Class<?> clazz)
   {

      // get reference to @URLMapping annotation
      URLBeanName prettyBean = (URLBeanName) clazz.getAnnotation(URLBeanName.class);

      // process annotation if it exists
      if (prettyBean != null)
      {

         // log class name
         if (log.isTraceEnabled())
         {
            log.trace("Found @URLBeanName annotation on class: " + clazz.getName());
         }

         // add bean to map
         beanNameMap.put(clazz, prettyBean.value());

      }

   }
private void processPrettyBeanAnnotation ( Class < ? > clazz ) { // get reference to @URLMapping annotation URLBeanName prettyBean = ( URLBeanName ) clazz . getAnnotation ( URLBeanName . class ) ; // process annotation if it exists if ( prettyBean != null ) { // log class name if ( log . isTraceEnabled ( ) ) { log . trace ( "Found @URLBeanName annotation on class: " + clazz . getName ( ) ) ; } // add bean to map beanNameMap . put ( clazz , prettyBean . value ( ) ) ; } }
Checks the class for a {@link URLBeanName} annotation.

@param clazz Class to scan
Checks the class for a { @link URLBeanName } annotation .