Interface ActivationDepthProvider

    • Method Detail

      • activationDepthFor

        ActivationDepth activationDepthFor​(ClassMetadata classMetadata,
                                           ActivationMode mode)
        Returns an ActivationDepth suitable for the specified class and activation mode.
        Parameters:
        classMetadata - root class that's being activated
        mode - activation mode
        Returns:
        an appropriate ActivationDepth for the class and activation mode
      • activationDepth

        ActivationDepth activationDepth​(int depth,
                                        ActivationMode mode)
        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.
        Parameters:
        depth -
        mode -
        Returns: