本文整理了Java中org.wildfly.security.manager.WildFlySecurityManager.getCallStack()
方法的一些代码示例,展示了WildFlySecurityManager.getCallStack()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WildFlySecurityManager.getCallStack()
方法的具体详情如下:
包路径:org.wildfly.security.manager.WildFlySecurityManager
类名称:WildFlySecurityManager
方法名:getCallStack
暂无
代码示例来源:origin: wildfly/wildfly
/**
* Determine whether the call stack contains a given class. Useful for assertions.
*
* @param clazz the class to test
* @return {@code true} if the call stack contains the class
*/
public boolean callStackContains(Class<?> clazz) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
for (int i = 2; i < stack.length; i ++) {
if (stack[i] == clazz) return true;
}
return false;
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Get the call stack.
*
* @return the call stack
*/
public Class<?>[] getCallStack() {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
return copyOfRange(stack, 2, stack.length);
}
代码示例来源:origin: wildfly/wildfly
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, stack.length);
}
代码示例来源:origin: wildfly/wildfly
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @param numFrames the maximum number of frames to return
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames, int numFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, min(from + numFrames, stack.length));
}
代码示例来源:origin: wildfly/wildfly
@SuppressWarnings("deprecation")
static Class<?> getCallerClass(int n) {
if (hasGetCallerClass) {
return JDKSpecific.getCallerClass(n + callerOffset);
} else {
return getCallStack()[n + callerOffset];
}
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
/**
* Determine whether the call stack contains a given class. Useful for assertions.
*
* @param clazz the class to test
* @return {@code true} if the call stack contains the class
*/
public boolean callStackContains(Class<?> clazz) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
for (int i = 2; i < stack.length; i ++) {
if (stack[i] == clazz) return true;
}
return false;
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Get the call stack.
*
* @return the call stack
*/
public Class<?>[] getCallStack() {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
return copyOfRange(stack, 2, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-security-manager
/**
* Get the call stack.
*
* @return the call stack
*/
public Class<?>[] getCallStack() {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
return copyOfRange(stack, 2, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
/**
* Get the call stack.
*
* @return the call stack
*/
public Class<?>[] getCallStack() {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
return copyOfRange(stack, 2, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
/**
* Get the call stack.
*
* @return the call stack
*/
public Class<?>[] getCallStack() {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
return copyOfRange(stack, 2, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, stack.length);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-security-manager
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, stack.length);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @param numFrames the maximum number of frames to return
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames, int numFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, min(from + numFrames, stack.length));
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
/**
* Get all or a portion of the call stack. The {@code numFrames} argument specifies how many frames should be
* returned.
*
* @param skipFrames the number of frames to skip; 0 will include the immediate caller at index 0
* @param numFrames the maximum number of frames to return
* @return the partial call stack
*/
public Class<?>[] getCallStack(int skipFrames, int numFrames) {
final Class<?>[] stack = WildFlySecurityManager.getCallStack();
final int from = max(0, skipFrames) + 2;
return copyOfRange(stack, from, min(from + numFrames, stack.length));
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
@SuppressWarnings("deprecation")
static Class<?> getCallerClass(int n) {
if (hasGetCallerClass) {
return JDKSpecific.getCallerClass(n + callerOffset);
} else {
return getCallStack()[n + callerOffset];
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@SuppressWarnings("deprecation")
static Class<?> getCallerClass(int n) {
if (hasGetCallerClass) {
return Reflection.getCallerClass(n + callerOffset);
} else {
return getCallStack()[n + callerOffset];
}
}
代码示例来源:origin: org.wildfly.security/wildfly-security-manager
@SuppressWarnings("deprecation")
static Class<?> getCallerClass(int n) {
if (hasGetCallerClass) {
return Reflection.getCallerClass(n + callerOffset);
} else {
return getCallStack()[n + callerOffset];
}
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
@SuppressWarnings("deprecation")
static Class<?> getCallerClass(int n) {
if (hasGetCallerClass) {
return JDKSpecific.getCallerClass(n + callerOffset);
} else {
return getCallStack()[n + callerOffset];
}
}
内容来源于网络,如有侵权,请联系作者删除!