Package org.hibernate.proxy
Interface ProxyConfiguration
-
- All Superinterfaces:
PrimeAmongSecondarySupertypes
public interface ProxyConfiguration extends PrimeAmongSecondarySupertypes
A proxy configuration allows the definition of an interceptor object that decides on the behavior of a proxy. This interface is meant for internal use but is in a public package in order to provide code generation.While this interface depends on Byte Buddy types, this is only true for annotation types which are silently suppressed by the runtime if they are not available on a class loader. This allows using this interceptor and configuration with for example OSGi without any export of Byte Buddy when using Hibernate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ProxyConfiguration.Interceptor
An interceptor object that is responsible for invoking a proxy's method.static class
ProxyConfiguration.InterceptorDispatcher
A static interceptor that guards against method calls before the interceptor is set.
-
Field Summary
Fields Modifier and Type Field Description static String
INTERCEPTOR_FIELD_NAME
The canonical field name for an interceptor object stored in a proxied object.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
$$_hibernate_set_interceptor(ProxyConfiguration.Interceptor interceptor)
Defines an interceptor object that specifies the behavior of the proxy object.default ProxyConfiguration
asProxyConfiguration()
-
Methods inherited from interface org.hibernate.engine.spi.PrimeAmongSecondarySupertypes
asCompositeOwner, asCompositeTracker, asHibernateProxy, asManaged, asManagedComposite, asManagedEntity, asManagedMappedSuperclass, asPersistentAttributeInterceptable, asSelfDirtinessTracker
-
-
-
-
Field Detail
-
INTERCEPTOR_FIELD_NAME
static final String INTERCEPTOR_FIELD_NAME
The canonical field name for an interceptor object stored in a proxied object.- See Also:
- Constant Field Values
-
-
Method Detail
-
$$_hibernate_set_interceptor
void $$_hibernate_set_interceptor(ProxyConfiguration.Interceptor interceptor)
Defines an interceptor object that specifies the behavior of the proxy object.- Parameters:
interceptor
- The interceptor object.
-
asProxyConfiguration
default ProxyConfiguration asProxyConfiguration()
- Specified by:
asProxyConfiguration
in interfacePrimeAmongSecondarySupertypes
-
-