Package com.db4o.internal.activation
Class LegacyActivationDepthProvider
- java.lang.Object
-
- com.db4o.internal.activation.LegacyActivationDepthProvider
-
- All Implemented Interfaces:
ActivationDepthProvider
public class LegacyActivationDepthProvider extends java.lang.Object implements ActivationDepthProvider
-
-
Field Summary
Fields Modifier and Type Field Description static ActivationDepthProvider
INSTANCE
-
Constructor Summary
Constructors Constructor Description LegacyActivationDepthProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationDepth
activationDepth(int depth, ActivationMode mode)
Returns an ActivationDepth that will activate at most *depth* levels.ActivationDepth
activationDepthFor(ClassMetadata classMetadata, ActivationMode mode)
Returns an ActivationDepth suitable for the specified class and activation mode.
-
-
-
Field Detail
-
INSTANCE
public static final ActivationDepthProvider INSTANCE
-
-
Method Detail
-
activationDepthFor
public ActivationDepth activationDepthFor(ClassMetadata classMetadata, ActivationMode mode)
Description copied from interface:ActivationDepthProvider
Returns an ActivationDepth suitable for the specified class and activation mode.- Specified by:
activationDepthFor
in interfaceActivationDepthProvider
- Parameters:
classMetadata
- root class that's being activatedmode
- activation mode- Returns:
- an appropriate ActivationDepth for the class and activation mode
-
activationDepth
public ActivationDepth activationDepth(int depth, ActivationMode mode)
Description copied from interface:ActivationDepthProvider
Returns an ActivationDepth that will activate at most *depth* levels. A special case is Integer.MAX_VALUE (int.MaxValue for .net) for which a FullActivationDepth object must be returned.- Specified by:
activationDepth
in interfaceActivationDepthProvider
- Returns:
-
-