Hi,
I tried to replace the FullTextIndexEventListener with my custom listener. I first used a duplication strategy to avoid the registration of FullTextIndexEventListener.
The following code in ContextHelper is problematic because my custom listener need to extends the FullTextIndexEventListener :
Code:
//FIXME this sucks since we mandate the event listener use
for ( PostInsertEventListener candidate : listeners ) {
if ( candidate instanceof FullTextIndexEventListener ) {
listener = (FullTextIndexEventListener) candidate;
break;
}
}
The code comment below scare me because my code will soon break :
Code:
//TODO make this class final as soon as FullTextIndexCollectionEventListener is removed.
public class FullTextIndexEventListener
Can you give me the right direction to take to be compatible with the future version of Hibernate ?
Thanks,
Guillaume.