Interface EnversService
-
- All Superinterfaces:
Serializable,Service
- All Known Implementing Classes:
EnversServiceImpl
public interface EnversService extends Service
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
Fields Modifier and Type Field Description static StringINTEGRATION_ENABLEDThe name of the configuration setting used to control whether the Envers integration is enabled.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuditProcessManagergetAuditProcessManager()AuditStrategygetAuditStrategy()ClassLoaderServicegetClassLoaderService()ConfigurationgetConfig()EntitiesConfigurationsgetEntitiesConfigurations()ModifiedEntityNamesReadergetModifiedEntityNamesReader()RevisionInfoNumberReadergetRevisionInfoNumberReader()RevisionInfoQueryCreatorgetRevisionInfoQueryCreator()ServiceRegistrygetServiceRegistry()voidinitialize(MetadataImplementor metadata, MappingCollector mappingCollector)booleanisEnabled()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.booleanisInitialized()AssumingisEnabled()istrue, hasinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)been called yet?
-
-
-
Field Detail
-
INTEGRATION_ENABLED
static final String INTEGRATION_ENABLED
The name of the configuration setting used to control whether the Envers integration is enabled. Default is true- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
trueIf the integration is enabled;falseotherwise.
-
isInitialized
boolean isInitialized()
AssumingisEnabled()istrue, hasinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)been called yet?- Returns:
trueindicatesinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)has been called;falseindicates thatinitialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)has not (yet) been called.
-
initialize
void initialize(MetadataImplementor metadata, MappingCollector mappingCollector)
-
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()
-
-