/** * Gets the {@code Class} object of the caller who invoked the method * that invoked {@code getCallerClass}. * * @return {@code Class} object of the caller's caller invoking this method. */ public Class<?> getCallerClass() { Class<?>[] classContext = new MySecurityManager().getClassContext0(); return classContext[3]; }
/** * Gets the {@code Class} object of the caller who invoked the method * that invoked {@code getCallerClass}. * * @return {@code Class} object of the caller's caller invoking this method. */ public Class<?> getCallerClass() { Class<?>[] classContext = new MySecurityManager().getClassContext0(); return classContext[3]; }