Interface EnversService
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
EnversServiceImpl
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the configuration setting used to control whether the Envers integration is enabled. -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(MetadataImplementor metadata, MappingCollector mappingCollector) 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
AssumingisEnabled()
istrue
, hasinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)
been called yet?
-
Field Details
-
INTEGRATION_ENABLED
The name of the configuration setting used to control whether the Envers integration is enabled. Default is true- See Also:
-
-
Method Details
-
isEnabled
boolean isEnabled()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.- Returns:
true
If the integration is enabled;false
otherwise.
-
isInitialized
boolean isInitialized()AssumingisEnabled()
istrue
, hasinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)
been called yet?- Returns:
true
indicatesinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)
has been called;false
indicates thatinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)
has not (yet) been called.
-
initialize
-
getConfig
Configuration getConfig() -
getAuditProcessManager
AuditProcessManager getAuditProcessManager() -
getAuditStrategy
AuditStrategy getAuditStrategy() -
getEntitiesConfigurations
EntitiesConfigurations getEntitiesConfigurations() -
getRevisionInfoQueryCreator
RevisionInfoQueryCreator getRevisionInfoQueryCreator() -
getRevisionInfoNumberReader
RevisionInfoNumberReader getRevisionInfoNumberReader() -
getModifiedEntityNamesReader
ModifiedEntityNamesReader getModifiedEntityNamesReader() -
getClassLoaderService
ClassLoaderService getClassLoaderService() -
getServiceRegistry
ServiceRegistry getServiceRegistry()
-