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: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)been called yet?- Specified by:
isInitializedin interfaceEnversService- Returns:
trueindicatesEnversService.initialize(org.hibernate.boot.spi.MetadataImplementor, org.hibernate.envers.configuration.internal.MappingCollector)has been called;falseindicates 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:
initializein interfaceEnversService
-
getConfig
public Configuration getConfig()
- Specified by:
getConfigin interfaceEnversService
-
getAuditProcessManager
public AuditProcessManager getAuditProcessManager()
- Specified by:
getAuditProcessManagerin interfaceEnversService
-
getAuditStrategy
@Deprecated public AuditStrategy getAuditStrategy()
Deprecated.- Specified by:
getAuditStrategyin interfaceEnversService
-
getEntitiesConfigurations
public EntitiesConfigurations getEntitiesConfigurations()
- Specified by:
getEntitiesConfigurationsin interfaceEnversService
-
getRevisionInfoQueryCreator
public RevisionInfoQueryCreator getRevisionInfoQueryCreator()
- Specified by:
getRevisionInfoQueryCreatorin interfaceEnversService
-
getRevisionInfoNumberReader
public RevisionInfoNumberReader getRevisionInfoNumberReader()
- Specified by:
getRevisionInfoNumberReaderin interfaceEnversService
-
getModifiedEntityNamesReader
public ModifiedEntityNamesReader getModifiedEntityNamesReader()
- Specified by:
getModifiedEntityNamesReaderin interfaceEnversService
-
getClassLoaderService
public ClassLoaderService getClassLoaderService()
- Specified by:
getClassLoaderServicein interfaceEnversService
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistryin interfaceEnversService
-
-