Package org.hibernate.bytecode.internal
Class BytecodeProviderInitiator
- java.lang.Object
-
- org.hibernate.bytecode.internal.BytecodeProviderInitiator
-
- All Implemented Interfaces:
StandardServiceInitiator<BytecodeProvider>,ServiceInitiator<BytecodeProvider>
public final class BytecodeProviderInitiator extends Object implements StandardServiceInitiator<BytecodeProvider>
-
-
Field Summary
Fields Modifier and Type Field Description static StringBYTECODE_PROVIDER_NAME_BYTEBUDDYDeprecated, for removal: This API element is subject to removal in a future version.Register aBytecodeProviderthrough Java services.static StringBYTECODE_PROVIDER_NAME_DEFAULTDeprecated, for removal: This API element is subject to removal in a future version.Deprecated with no replacementstatic StringBYTECODE_PROVIDER_NAME_NONEDeprecated, for removal: This API element is subject to removal in a future version.Register aBytecodeProviderthrough Java services.static StandardServiceInitiator<BytecodeProvider>INSTANCESingleton access
-
Constructor Summary
Constructors Constructor Description BytecodeProviderInitiator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BytecodeProviderbuildBytecodeProvider(String providerName)static BytecodeProviderbuildDefaultBytecodeProvider()static BytecodeProvidergetBytecodeProvider(Iterable<BytecodeProvider> bytecodeProviders)Class<BytecodeProvider>getServiceInitiated()Obtains the service role initiated by this initiator.BytecodeProviderinitiateService(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)Initiates the managed service.
-
-
-
Field Detail
-
BYTECODE_PROVIDER_NAME_BYTEBUDDY
@Deprecated(forRemoval=true) public static final String BYTECODE_PROVIDER_NAME_BYTEBUDDY
Deprecated, for removal: This API element is subject to removal in a future version.Register aBytecodeProviderthrough Java services.- See Also:
- Constant Field Values
-
BYTECODE_PROVIDER_NAME_NONE
@Deprecated(forRemoval=true) public static final String BYTECODE_PROVIDER_NAME_NONE
Deprecated, for removal: This API element is subject to removal in a future version.Register aBytecodeProviderthrough Java services.- See Also:
- Constant Field Values
-
BYTECODE_PROVIDER_NAME_DEFAULT
@Deprecated(forRemoval=true) public static final String BYTECODE_PROVIDER_NAME_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated with no replacement- See Also:
- Constant Field Values
-
INSTANCE
public static final StandardServiceInitiator<BytecodeProvider> INSTANCE
Singleton access
-
-
Method Detail
-
initiateService
public BytecodeProvider initiateService(Map<String,Object> configurationValues, ServiceRegistryImplementor registry)
Description copied from interface:StandardServiceInitiatorInitiates the managed service.- Specified by:
initiateServicein interfaceStandardServiceInitiator<BytecodeProvider>- 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<BytecodeProvider> getServiceInitiated()
Description copied from interface:ServiceInitiatorObtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiatedin interfaceServiceInitiator<BytecodeProvider>- Returns:
- The service role.
-
buildDefaultBytecodeProvider
@Internal public static BytecodeProvider buildDefaultBytecodeProvider()
-
getBytecodeProvider
@Internal public static BytecodeProvider getBytecodeProvider(Iterable<BytecodeProvider> bytecodeProviders)
-
buildBytecodeProvider
@Internal public static BytecodeProvider buildBytecodeProvider(String providerName)
-
-