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 String
BYTECODE_PROVIDER_NAME_BYTEBUDDY
Deprecated, for removal: This API element is subject to removal in a future version.Register aBytecodeProvider
through Java services.static String
BYTECODE_PROVIDER_NAME_DEFAULT
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated with no replacementstatic String
BYTECODE_PROVIDER_NAME_NONE
Deprecated, for removal: This API element is subject to removal in a future version.Register aBytecodeProvider
through Java services.static StandardServiceInitiator<BytecodeProvider>
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description BytecodeProviderInitiator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BytecodeProvider
buildBytecodeProvider(String providerName)
static BytecodeProvider
buildDefaultBytecodeProvider()
static BytecodeProvider
getBytecodeProvider(Iterable<BytecodeProvider> bytecodeProviders)
Class<BytecodeProvider>
getServiceInitiated()
Obtains the service role initiated by this initiator.BytecodeProvider
initiateService(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 aBytecodeProvider
through 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 aBytecodeProvider
through 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:StandardServiceInitiator
Initiates the managed service.- Specified by:
initiateService
in 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:ServiceInitiator
Obtains the service role initiated by this initiator. Should be unique within a registry- Specified by:
getServiceInitiated
in 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)
-
-