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 TypeMethodDescriptionvoidConfigure the service.Deprecated.voidinitialize(MetadataImplementor metadata, MappingCollector mappingCollector, EffectiveMappingDefaults effectiveMappingDefaults) booleanIs 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.booleanvoidstop()Stop phase notification
-
Constructor Details
-
EnversServiceImpl
public EnversServiceImpl()
-
-
Method Details
-
configure
Description copied from interface:ConfigurableConfigure the service.- Specified by:
configurein interfaceConfigurable- Parameters:
configurationValues- The configuration properties.
-
isEnabled
public boolean isEnabled()Description copied from interface:EnversServiceIs 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:
isEnabledin interfaceEnversService- Returns:
trueIf the integration is enabled;falseotherwise.
-
isInitialized
public boolean isInitialized()Description copied from interface:EnversServiceAssumingEnversService.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:
isInitializedin interfaceEnversService- Returns:
trueindicatesEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector, org.hibernate.boot.spi.EffectiveMappingDefaults)has been called;falseindicates 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:
initializein interfaceEnversService
-
getConfig
- Specified by:
getConfigin interfaceEnversService
-
getAuditProcessManager
- Specified by:
getAuditProcessManagerin interfaceEnversService
-
getAuditStrategy
Deprecated.- Specified by:
getAuditStrategyin interfaceEnversService
-
getEntitiesConfigurations
- Specified by:
getEntitiesConfigurationsin interfaceEnversService
-
getRevisionInfoQueryCreator
- Specified by:
getRevisionInfoQueryCreatorin interfaceEnversService
-
getRevisionInfoNumberReader
- Specified by:
getRevisionInfoNumberReaderin interfaceEnversService
-
getModifiedEntityNamesReader
- Specified by:
getModifiedEntityNamesReaderin interfaceEnversService
-
getClassLoaderService
- Specified by:
getClassLoaderServicein interfaceEnversService
-
getServiceRegistry
- Specified by:
getServiceRegistryin interfaceEnversService
-
stop
public void stop()Description copied from interface:StoppableStop phase notification
-