[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Problem deploying bean with a property annotation

alesj do-not-reply at jboss.com
Mon Sep 24 09:45:30 EDT 2007


Should I add a new method on TypeInfo for applying this trim, as we did with sys property replace:

  |    /**
  |     * Convert a value
  |     *
  |     * @param value the original value
  |     * @param replaceProperties whether to replace properties
  |     * @return the converted value
  |     * @throws Throwable for any error
  |     */
  |    Object convertValue(Object value, boolean replaceProperties) throws Throwable;
  | 
  |    /**
  |     * Convert a value
  |     *
  |     * @param value the original value
  |     * @param replaceProperties whether to replace properties
  |     * @param trim do we trim
  |     * @return the converted value
  |     * @throws Throwable for any error
  |     */
  |    Object convertValue(Object value, boolean replaceProperties, boolean trim) throws Throwable;
  | 
  | 

So that this trim is not just a setting of StringValueMetaData.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087912#4087912

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087912



More information about the jboss-dev-forums mailing list