Class EnversServiceImpl
- java.lang.Object
-
- org.hibernate.envers.boot.internal.EnversServiceImpl
-
- All Implemented Interfaces:
Serializable
,EnversService
,Service
,Configurable
,Stoppable
public class EnversServiceImpl extends Object implements EnversService, 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hibernate.envers.boot.internal.EnversService
INTEGRATION_ENABLED
-
-
Constructor Summary
Constructors Constructor Description EnversServiceImpl()
-
Method Summary
-
-
-
Method Detail
-
configure
public void configure(Map<String,Object> configurationValues)
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)
been called yet?- Specified by:
isInitialized
in interfaceEnversService
- Returns:
true
indicatesEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)
has been called;false
indicates thatEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)
has not (yet) been called.
-
initialize
public void initialize(MetadataImplementor metadata, MappingCollector mappingCollector)
- Specified by:
initialize
in interfaceEnversService
-
getConfig
public Configuration getConfig()
- Specified by:
getConfig
in interfaceEnversService
-
getAuditProcessManager
public AuditProcessManager getAuditProcessManager()
- Specified by:
getAuditProcessManager
in interfaceEnversService
-
getAuditStrategy
@Deprecated public AuditStrategy getAuditStrategy()
Deprecated.- Specified by:
getAuditStrategy
in interfaceEnversService
-
getEntitiesConfigurations
public EntitiesConfigurations getEntitiesConfigurations()
- Specified by:
getEntitiesConfigurations
in interfaceEnversService
-
getRevisionInfoQueryCreator
public RevisionInfoQueryCreator getRevisionInfoQueryCreator()
- Specified by:
getRevisionInfoQueryCreator
in interfaceEnversService
-
getRevisionInfoNumberReader
public RevisionInfoNumberReader getRevisionInfoNumberReader()
- Specified by:
getRevisionInfoNumberReader
in interfaceEnversService
-
getModifiedEntityNamesReader
public ModifiedEntityNamesReader getModifiedEntityNamesReader()
- Specified by:
getModifiedEntityNamesReader
in interfaceEnversService
-
getClassLoaderService
public ClassLoaderService getClassLoaderService()
- Specified by:
getClassLoaderService
in interfaceEnversService
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistry
in interfaceEnversService
-
-