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 ActivationDepthProvider
activationProvider(InternalObjectContainer container)
void
apply(InternalObjectContainer container)
Configures the just opened ObjectContainer by setting event listeners, which will be triggered when activation or de-activation is required.static boolean
isTransparentActivationEnabledOn(InternalObjectContainer container)
void
prepare(Configuration configuration)
Gives a chance for the item to augment the configuration.
-
-
-
Method Detail
-
prepare
public void prepare(Configuration configuration)
Description copied from interface:ConfigurationItem
Gives a chance for the item to augment the configuration.- Specified by:
prepare
in 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:
apply
in 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)
-
-