private PrettyExpression buildPrettyExpression(Class<?> clazz, String component) {
    """
	Creates a {@link PrettyExpression} for a class and component. This method may return a {@link ConstantExpression}
	or a {@link LazyExpression}.
	
	@param clazz The class of the bean
	@param component the component (property or method name)
	@return The expression
    """

      if (log.isTraceEnabled())
      {
         log.trace("Searching name of bean: " + clazz.getName());
      }

      // get name from internal map build from @URLBeanName annotations and
      // previously resolved names
      String beanName = beanNameMap.get(clazz);

      // return a constant expression
      if (beanName != null)
      {
         if (log.isTraceEnabled())
         {
            log.trace("Got bean name from @URLBeanName annotation: " + beanName);
         }

         return new ConstantExpression("#{" + beanName + "." + component + "}");
      }

      // build a lazy expression
      else
      {

         if (log.isTraceEnabled())
         {
            log.trace("Name of bean not found. Building lazy expression for: " + clazz.getName());
         }

         return new LazyExpression(beanNameFinder, clazz, component);

      }

   }
private PrettyExpression buildPrettyExpression(Class<?> clazz, String component)
   {

      if (log.isTraceEnabled())
      {
         log.trace("Searching name of bean: " + clazz.getName());
      }

      // get name from internal map build from @URLBeanName annotations and
      // previously resolved names
      String beanName = beanNameMap.get(clazz);

      // return a constant expression
      if (beanName != null)
      {
         if (log.isTraceEnabled())
         {
            log.trace("Got bean name from @URLBeanName annotation: " + beanName);
         }

         return new ConstantExpression("#{" + beanName + "." + component + "}");
      }

      // build a lazy expression
      else
      {

         if (log.isTraceEnabled())
         {
            log.trace("Name of bean not found. Building lazy expression for: " + clazz.getName());
         }

         return new LazyExpression(beanNameFinder, clazz, component);

      }

   }
private PrettyExpression buildPrettyExpression ( Class < ? > clazz , String component ) { if ( log . isTraceEnabled ( ) ) { log . trace ( "Searching name of bean: " + clazz . getName ( ) ) ; } // get name from internal map build from @URLBeanName annotations and // previously resolved names String beanName = beanNameMap . get ( clazz ) ; // return a constant expression if ( beanName != null ) { if ( log . isTraceEnabled ( ) ) { log . trace ( "Got bean name from @URLBeanName annotation: " + beanName ) ; } return new ConstantExpression ( "#{" + beanName + "." + component + "}" ) ; } // build a lazy expression else { if ( log . isTraceEnabled ( ) ) { log . trace ( "Name of bean not found. Building lazy expression for: " + clazz . getName ( ) ) ; } return new LazyExpression ( beanNameFinder , clazz , component ) ; } }
Creates a {@link PrettyExpression} for a class and component. This method may return a {@link ConstantExpression}
or a {@link LazyExpression}.

@param clazz The class of the bean
@param component the component (property or method name)
@return The expression
Creates a { @link PrettyExpression } for a class and component . This method may return a { @link ConstantExpression } or a { @link LazyExpression } .