Class SecurityManagerEx

java.lang.Object
org.apache.felix.framework.util.SecurityManagerEx

public class SecurityManagerEx extends Object

Simple utility class used to obtain the current call stack as an array of classes, innermost caller first.

This used to extend SecurityManager purely to expose its protected getClassContext() method. The Security Manager is permanently disabled as of Java SE 24 (JEP 486) and is marked for removal, so the same information is now obtained from StackWalker, which is the supported replacement and yields frames in the same order.

  • Field Details

    • EMPTY_CLASSES

      private static final Class<?>[] EMPTY_CLASSES
    • WALKER

      private static final StackWalker WALKER
  • Constructor Details

    • SecurityManagerEx

      public SecurityManagerEx()
  • Method Details

    • getClassContext

      public Class<?>[] getClassContext()