Class EnversServiceImpl
java.lang.Object
org.hibernate.envers.boot.internal.EnversServiceImpl
- All Implemented Interfaces:
Serializable
,EnversService
,Service
,Configurable
,Stoppable
Provides central access to Envers' configuration.
In many ways, this replaces the legacy static map Envers used originally as
a means to share the old AuditConfiguration.
- See Also:
-
Field Summary
Fields inherited from interface org.hibernate.envers.boot.internal.EnversService
INTEGRATION_ENABLED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure the service.Deprecated.void
initialize
(MetadataImplementor metadata, MappingCollector mappingCollector, EffectiveMappingDefaults effectiveMappingDefaults) boolean
Is the Envers integration enabled? This is generally used as a protection for other Envers services (in the ServiceLoader sense) determine whether they should do their work.boolean
void
stop()
Stop phase notification
-
Constructor Details
-
EnversServiceImpl
public EnversServiceImpl()
-
-
Method Details
-
configure
Description copied from interface:Configurable
Configure the service.- Specified by:
configure
in interfaceConfigurable
- Parameters:
configurationValues
- The configuration properties.
-
isEnabled
public boolean isEnabled()Description copied from interface:EnversService
Is the Envers integration enabled? This is generally used as a protection for other Envers services (in the ServiceLoader sense) determine whether they should do their work.- Specified by:
isEnabled
in interfaceEnversService
- Returns:
true
If the integration is enabled;false
otherwise.
-
isInitialized
public boolean isInitialized()Description copied from interface:EnversService
AssumingEnversService.isEnabled()
istrue
, hasEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector, org.hibernate.boot.spi.EffectiveMappingDefaults)
been called yet?- Specified by:
isInitialized
in interfaceEnversService
- Returns:
true
indicatesEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector, org.hibernate.boot.spi.EffectiveMappingDefaults)
has been called;false
indicates thatEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector, org.hibernate.boot.spi.EffectiveMappingDefaults)
has not (yet) been called.
-
initialize
public void initialize(MetadataImplementor metadata, MappingCollector mappingCollector, EffectiveMappingDefaults effectiveMappingDefaults) - Specified by:
initialize
in interfaceEnversService
-
getConfig
- Specified by:
getConfig
in interfaceEnversService
-
getAuditProcessManager
- Specified by:
getAuditProcessManager
in interfaceEnversService
-
getAuditStrategy
Deprecated.- Specified by:
getAuditStrategy
in interfaceEnversService
-
getEntitiesConfigurations
- Specified by:
getEntitiesConfigurations
in interfaceEnversService
-
getRevisionInfoQueryCreator
- Specified by:
getRevisionInfoQueryCreator
in interfaceEnversService
-
getRevisionInfoNumberReader
- Specified by:
getRevisionInfoNumberReader
in interfaceEnversService
-
getModifiedEntityNamesReader
- Specified by:
getModifiedEntityNamesReader
in interfaceEnversService
-
getClassLoaderService
- Specified by:
getClassLoaderService
in interfaceEnversService
-
getServiceRegistry
- Specified by:
getServiceRegistry
in interfaceEnversService
-
stop
public void stop()Description copied from interface:Stoppable
Stop phase notification
-