Package com.db4o.ta
Class TransparentActivationSupport
- java.lang.Object
-
- com.db4o.ta.TransparentActivationSupport
-
- All Implemented Interfaces:
ConfigurationItem
- Direct Known Subclasses:
TransparentPersistenceSupport
public class TransparentActivationSupport extends java.lang.Object implements ConfigurationItem
Configuration item that enables Transparent Activation Mode for this session. TA mode should be switched on explicitly for manual TA implementation:
configuration.add(new TransparentActivationSupport());- See Also:
TransparentPersistenceSupport
-
-
Constructor Summary
Constructors Constructor Description TransparentActivationSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static ActivationDepthProvideractivationProvider(InternalObjectContainer container)voidapply(InternalObjectContainer container)Configures the just opened ObjectContainer by setting event listeners, which will be triggered when activation or de-activation is required.static booleanisTransparentActivationEnabledOn(InternalObjectContainer container)voidprepare(Configuration configuration)Gives a chance for the item to augment the configuration.
-
-
-
Method Detail
-
prepare
public void prepare(Configuration configuration)
Description copied from interface:ConfigurationItemGives a chance for the item to augment the configuration.- Specified by:
preparein interfaceConfigurationItem- Parameters:
configuration- the configuration that the item was added to
-
apply
public void apply(InternalObjectContainer container)
Configures the just opened ObjectContainer by setting event listeners, which will be triggered when activation or de-activation is required.- Specified by:
applyin interfaceConfigurationItem- Parameters:
container- the ObjectContainer to configure- See Also:
TransparentPersistenceSupport.apply(InternalObjectContainer)
-
isTransparentActivationEnabledOn
public static boolean isTransparentActivationEnabledOn(InternalObjectContainer container)
-
activationProvider
protected static ActivationDepthProvider activationProvider(InternalObjectContainer container)
-
-