Top Description Constructors Methods
org.hibernate.bytecode.internal.none

public final Class BytecodeProviderImpl

extends Object
implements BytecodeProvider
Class Inheritance
All Implemented Interfaces
org.hibernate.bytecode.spi.BytecodeProvider, org.hibernate.service.Service, java.io.Serializable
Imports
java.util.Map, org.hibernate.HibernateException, org.hibernate.bytecode.enhance.spi.EnhancementContext, .Enhancer, org.hibernate.bytecode.spi.BytecodeProvider, .ProxyFactoryFactory, .ReflectionOptimizer, org.hibernate.property.access.spi.PropertyAccess, org.checkerframework.checker.nullness.qual.Nullable

This BytecodeProvider represents the "no-op" enhancer; mostly useful as an optimisation when not needing any byte code optimisation applied, for example when the entities have been enhanced at compile time. Choosing this BytecodeProvider allows to exclude the bytecode enhancement libraries from the runtime classpath.
Since
5.4

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @Nullable Enhancer
getEnhancer(EnhancementContext
The enhancement context that describes the enhancements to apply.
enhancementContext
)

Implements org.hibernate.bytecode.spi.BytecodeProvider.getEnhancer.

Returns a byte code enhancer that implements the enhancements described in the supplied enhancement context.
public ProxyFactoryFactory
getProxyFactoryFactory()

Implements org.hibernate.bytecode.spi.BytecodeProvider.getProxyFactoryFactory.

Retrieve the specific factory for this provider capable of generating run-time proxies for lazy-loading purposes.
public ReflectionOptimizer
getReflectionOptimizer(Class<T>
The class to be reflected upon.
clazz
,
String[]
Names of all property getters to be accessed via reflection.
getterNames
,
String[]
Names of all property setters to be accessed via reflection.
setterNames
,
Class<T>[]
The types of all properties to be accessed.
types
)

Implements org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer.

Retrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.
public @Nullable ReflectionOptimizer
getReflectionOptimizer(Class<?>
The class to be reflected upon.
clazz
,
Map<String, PropertyAccess>
The ordered property access map
propertyAccessMap
)

Implements org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer.

Retrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BytecodeProviderImplback to summary
public BytecodeProviderImpl()

Method Detail

getEnhancerback to summary
public @Nullable Enhancer getEnhancer(EnhancementContext enhancementContext)

Implements org.hibernate.bytecode.spi.BytecodeProvider.getEnhancer.

Doc from org.hibernate.bytecode.spi.BytecodeProvider.getEnhancer.

Returns a byte code enhancer that implements the enhancements described in the supplied enhancement context.

Parameters
enhancementContext:EnhancementContext

The enhancement context that describes the enhancements to apply.

Returns:@Nullable Enhancer

An enhancer to perform byte code manipulations.

Annotations
@Override
getProxyFactoryFactoryback to summary
public ProxyFactoryFactory getProxyFactoryFactory()

Implements org.hibernate.bytecode.spi.BytecodeProvider.getProxyFactoryFactory.

Doc from org.hibernate.bytecode.spi.BytecodeProvider.getProxyFactoryFactory.

Retrieve the specific factory for this provider capable of generating run-time proxies for lazy-loading purposes.

Returns:ProxyFactoryFactory

The provider specific factory.

Annotations
@Override
getReflectionOptimizerback to summary
public ReflectionOptimizer getReflectionOptimizer(Class<T> clazz, String[] getterNames, String[] setterNames, Class<T>[] types)

Implements org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer.

Doc from org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer.

Retrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.

Parameters
clazz:Class<T>

The class to be reflected upon.

getterNames:String[]

Names of all property getters to be accessed via reflection.

setterNames:String[]

Names of all property setters to be accessed via reflection.

types:Class<T>[]

The types of all properties to be accessed.

Returns:ReflectionOptimizer

The reflection optimization delegate.

Annotations
@Override
getReflectionOptimizerback to summary
public @Nullable ReflectionOptimizer getReflectionOptimizer(Class<?> clazz, Map<String, PropertyAccess> propertyAccessMap)

Implements org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer.

Doc from org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer.

Retrieve the ReflectionOptimizer delegate for this provider capable of generating reflection optimization components.

Parameters
clazz:Class<?>

The class to be reflected upon.

propertyAccessMap:Map<String, PropertyAccess>

The ordered property access map

Returns:@Nullable ReflectionOptimizer

The reflection optimization delegate.

Annotations
@Override