openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter" <kwsut...@gmail.com>
Subject Re: LifecycleListener problem
Date Fri, 29 Jun 2007 14:17:55 GMT
Sounds reasonable to me.

On 6/29/07, Patrick Linskey <plinskey@gmail.com> wrote:
>
> Hi,
>
> It is possible to registering a LifecycleListener like so:
>
>     emf.addLifecycleListener(new MyLifecycleListener());
>
> However, a listener so registered will never fire, because the
> internal code will see a Class[0], not null, as the last argument to
> addLifecycleListener(). The right syntax is:
>
>     emf.addLifecycleListener(new MyLifecycleListener(), null);
>
> Needless to say, this is a bit surprising. Maybe we should treat
> Class[0] as null?
>
> -Patrick
>
> --
> Patrick Linskey
> 202 669 5907
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message