Package org.hibernate.bytecode.internal
Class ProxyFactoryFactoryInitiator
- java.lang.Object
-
- org.hibernate.bytecode.internal.ProxyFactoryFactoryInitiator
-
- All Implemented Interfaces:
StandardServiceInitiator<ProxyFactoryFactory>
,ServiceInitiator<ProxyFactoryFactory>
public final class ProxyFactoryFactoryInitiator extends Object implements StandardServiceInitiator<ProxyFactoryFactory>
Most commonly theProxyFactoryFactory
will depend directly on the chosenBytecodeProvider
, however by registering them as two separate services we can allow to override either one or both of them.
-
-
Field Summary
Fields Modifier and Type Field Description static StandardServiceInitiator<ProxyFactoryFactory>
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description ProxyFactoryFactoryInitiator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<ProxyFactoryFactory>
getServiceInitiated()
Obtains the service role initiated by this initiator.ProxyFactoryFactory
initiateService(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
Initiates the managed service.
-
-
-
Field Detail
-
INSTANCE
public static final StandardServiceInitiator<ProxyFactoryFactory> INSTANCE
Singleton access
-
-
Method Detail
-
initiateService
public ProxyFactoryFactory initiateService(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
Description copied from interface:StandardServiceInitiator
Initiates the managed service.- Specified by:
initiateService
in interfaceStandardServiceInitiator<ProxyFactoryFactory>
- 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
public Class<ProxyFactoryFactory> 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<ProxyFactoryFactory>
- Returns:
- The service role.
-
-