Class EnversServiceImpl
java.lang.Object
org.hibernate.envers.boot.internal.EnversServiceImpl
- All Implemented Interfaces:
Serializable,EnversService,org.hibernate.service.Service,org.hibernate.service.spi.Configurable,org.hibernate.service.spi.Stoppable
public class EnversServiceImpl
extends Object
implements EnversService, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.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 TypeMethodDescriptionvoidDeprecated.org.hibernate.boot.registry.classloading.spi.ClassLoaderServiceorg.hibernate.service.ServiceRegistryvoidinitialize(org.hibernate.boot.spi.MetadataImplementor metadata, MappingCollector mappingCollector, org.hibernate.boot.spi.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()
-
Constructor Details
-
EnversServiceImpl
public EnversServiceImpl()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.hibernate.service.spi.Configurable
-
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(org.hibernate.boot.spi.MetadataImplementor metadata, MappingCollector mappingCollector, org.hibernate.boot.spi.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
public org.hibernate.boot.registry.classloading.spi.ClassLoaderService getClassLoaderService()- Specified by:
getClassLoaderServicein interfaceEnversService
-
getServiceRegistry
public org.hibernate.service.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin interfaceEnversService
-
stop
public void stop()- Specified by:
stopin interfaceorg.hibernate.service.spi.Stoppable
-