im talking about having access to component inside validate(ivaldiatable).
it would take some ugly hacking to be able to do this with
ibehaviorprovider, unless you do the same thing...let
ibehaviorprovider.newbehavior return this.

-igor


On 5/10/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

On 5/10/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> actually another advantage of doing this, as far as hibernate validator
> stuff goes, is that because it is a behavior and validator in one the
> validator can get access to the component it is attached to via
> behavior.bind().

Not really a distinguishing feature though, as both the factory method
gets the component passed in, and as the behavior gets added using the
normal add(IBehavior) method, the behavior itself will get it's bind
method called as well.

Eelco

Reply via email to