Class EntityCopyObserverFactoryInitiator

java.lang.Object
org.hibernate.event.internal.EntityCopyObserverFactoryInitiator
All Implemented Interfaces:
StandardServiceInitiator<EntityCopyObserverFactory>, ServiceInitiator<EntityCopyObserverFactory>

public class EntityCopyObserverFactoryInitiator extends Object implements StandardServiceInitiator<EntityCopyObserverFactory>
Looks for the configuration property "hibernate.event.merge.entity_copy_observer" and registers the matching EntityCopyObserverFactory based on the configuration value.

For known implementations some optimisations are possible, such as reusing a singleton for the stateless implementations. When a user plugs in a custom EntityCopyObserver we take a defensive approach.