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 theProxyFactoryFactorywill 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>INSTANCESingleton 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.ProxyFactoryFactoryinitiateService(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:StandardServiceInitiatorInitiates the managed service.- Specified by:
initiateServicein 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:ServiceInitiatorObtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiatedin interfaceServiceInitiator<ProxyFactoryFactory>- Returns:
- The service role.
-
-