On 6/14/07, Dominique Devienne <[EMAIL PROTECTED]> wrote:
On 6/14/07, Peter Reilly <[EMAIL PROTECTED]> wrote:
> interface SetPropertyResolver {
>     boolean setProperty(Project a, String property, String value)
>     returns true if property consumed
>     return false if not
> }

I don't understand the SetPropertyResolver aspect. I like the GetPR,
although I'd call it PropertyEvaluator maybe, or PropertyExpander,
I think that Stefan should decide the name ;-)
but
I don't get the Set part. How would that be used? The GetPR comes into
play in a ${scheme:...} expansion, but how would the SetPR work? --DD

There could be a number of uses for example:
<mm:bean id="abc" class="org.example.MyBean">
  <attributes version="a" color="blue" count="10"/>
</mm:bean>

<addpropertyresolver classname="org.example.BeanPropertyResolver"
                              prefix="bean" (?) />

<property name="bean:abc.count" value="20"/>

<ac:if>
  <equals arg1="bean:abc.count" arg2="20"/>
  <then>
    <echo>Set the bean value property successfully!</echo>
  </then>
</ac:if>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to