Package org.hibernate.event.internal
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the service role initiated by this initiator.initiateService
(Map<String, Object> configurationValues, ServiceRegistryImplementor registry) Initiates the managed service.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EntityCopyObserverFactoryInitiator
public EntityCopyObserverFactoryInitiator()
-
-
Method Details
-
initiateService
public EntityCopyObserverFactory initiateService(Map<String, Object> configurationValues, ServiceRegistryImplementor registry) Description copied from interface:StandardServiceInitiator
Initiates the managed service.- Specified by:
initiateService
in interfaceStandardServiceInitiator<EntityCopyObserverFactory>
- Parameters:
configurationValues
- The configuration values in effectregistry
- The service registry. Can be used to locate services needed to fulfill initiation.- Returns:
- The initiated service.
-
getServiceInitiated
Description copied from interface:ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiated
in interfaceServiceInitiator<EntityCopyObserverFactory>
- Returns:
- The service role.
-