Top Inners Fields Constructors Methods
org.jboss.logmanager

pack-priv final Class JDKSpecific

extends Object
Class Inheritance
Static Imports
java.security.AccessController.doPrivileged

Author
David M. Lloyd

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final boolean
pack-priv static final StackWalker

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
private static void
calculateJdkModule(final ExtLogRecord logRecord, final Class<?> clazz)

private static void
calculateModule(final ExtLogRecord logRecord, final Class<?> clazz)

pack-priv static Class<?>
findCallingClass(Set<ClassLoader> rejectClassLoaders)

pack-priv static LogContext
logContextFinder(Set<ClassLoader> rejectClassLoaders, final Function<ClassLoader, LogContext> finder)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

JBOSS_MODULESback to summary
private static final boolean JBOSS_MODULES
WALKERback to summary
pack-priv static final StackWalker WALKER

Constructor Detail

JDKSpecificback to summary
private JDKSpecific()

Method Detail

calculateCallerback to summary
pack-priv static void calculateCaller(ExtLogRecord logRecord)
calculateJdkModuleback to summary
private static void calculateJdkModule(final ExtLogRecord logRecord, final Class<?> clazz)
calculateModuleback to summary
private static void calculateModule(final ExtLogRecord logRecord, final Class<?> clazz)
findCallingClassback to summary
pack-priv static Class<?> findCallingClass(Set<ClassLoader> rejectClassLoaders)
logContextFinderback to summary
pack-priv static LogContext logContextFinder(Set<ClassLoader> rejectClassLoaders, final Function<ClassLoader, LogContext> finder)
org.jboss.logmanager back to summary

private final Class JDKSpecific.CallerCalcFunction

extends Object
implements Function<Stream<StackWalker.StackFrame>, Void>
Class Inheritance
All Implemented Interfaces
java.util.function.Function

Field Summary

Modifier and TypeField and Description
private final ExtLogRecord

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Void
apply(final Stream<StackWalker.StackFrame>
the function argument
stream
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logRecordback to summary
private final ExtLogRecord logRecord

Constructor Detail

CallerCalcFunctionback to summary
pack-priv CallerCalcFunction(final ExtLogRecord logRecord)

Method Detail

applyback to summary
public Void apply(final Stream<StackWalker.StackFrame> stream)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
stream:Stream<StackWalker.StackFrame>

the function argument

Returns:Void

the function result

org.jboss.logmanager back to summary

private final Class JDKSpecific.FindAllWalkFunction

extends Object
implements Function<Stream<StackWalker.StackFrame>, LogContext>
Class Inheritance
All Implemented Interfaces
java.util.function.Function

Field Summary

Modifier and TypeField and Description
private final Function<ClassLoader, LogContext>
private final Set<ClassLoader>

Constructor Summary

AccessConstructor and Description
pack-priv
FindAllWalkFunction(final Set<ClassLoader> rejectClassLoaders, final Function<ClassLoader, LogContext> finder)

Method Summary

Modifier and TypeMethod and Description
public LogContext
apply(final Stream<StackWalker.StackFrame>
the function argument
stream
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

finderback to summary
private final Function<ClassLoader, LogContext> finder
rejectClassLoadersback to summary
private final Set<ClassLoader> rejectClassLoaders

Constructor Detail

FindAllWalkFunctionback to summary
pack-priv FindAllWalkFunction(final Set<ClassLoader> rejectClassLoaders, final Function<ClassLoader, LogContext> finder)

Method Detail

applyback to summary
public LogContext apply(final Stream<StackWalker.StackFrame> stream)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
stream:Stream<StackWalker.StackFrame>

the function argument

Returns:LogContext

the function result

Annotations
@Override
org.jboss.logmanager back to summary

private final Class JDKSpecific.FindCallingClassAction

extends Object
implements PrivilegedAction<Class<?>>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction

Field Summary

Modifier and TypeField and Description
private final Set<ClassLoader>

Constructor Summary

AccessConstructor and Description
pack-priv
FindCallingClassAction(final Set<ClassLoader> rejectClassLoaders)

Method Summary

Modifier and TypeMethod and Description
public Class<?>
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rejectClassLoadersback to summary
private final Set<ClassLoader> rejectClassLoaders

Constructor Detail

FindCallingClassActionback to summary
pack-priv FindCallingClassAction(final Set<ClassLoader> rejectClassLoaders)

Method Detail

runback to summary
public Class<?> run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Class<?>

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

org.jboss.logmanager back to summary

private final Class JDKSpecific.FindCallingClassesAction

extends Object
implements PrivilegedAction<LogContext>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction

Field Summary

Modifier and TypeField and Description
private final Function<ClassLoader, LogContext>
private final Set<ClassLoader>

Constructor Summary

AccessConstructor and Description
pack-priv
FindCallingClassesAction(final Set<ClassLoader> rejectClassLoaders, final Function<ClassLoader, LogContext> finder)

Method Summary

Modifier and TypeMethod and Description
public LogContext
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

finderback to summary
private final Function<ClassLoader, LogContext> finder
rejectClassLoadersback to summary
private final Set<ClassLoader> rejectClassLoaders

Constructor Detail

FindCallingClassesActionback to summary
pack-priv FindCallingClassesAction(final Set<ClassLoader> rejectClassLoaders, final Function<ClassLoader, LogContext> finder)

Method Detail

runback to summary
public LogContext run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:LogContext

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

org.jboss.logmanager back to summary

private final Class JDKSpecific.FindFirstWalkFunction

extends Object
implements Function<Stream<StackWalker.StackFrame>, Class<?>>
Class Inheritance
All Implemented Interfaces
java.util.function.Function

Field Summary

Modifier and TypeField and Description
private final Set<ClassLoader>

Constructor Summary

AccessConstructor and Description
pack-priv
FindFirstWalkFunction(final Set<ClassLoader> rejectClassLoaders)

Method Summary

Modifier and TypeMethod and Description
public Class<?>
apply(final Stream<StackWalker.StackFrame>
the function argument
stream
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rejectClassLoadersback to summary
private final Set<ClassLoader> rejectClassLoaders

Constructor Detail

FindFirstWalkFunctionback to summary
pack-priv FindFirstWalkFunction(final Set<ClassLoader> rejectClassLoaders)

Method Detail

applyback to summary
public Class<?> apply(final Stream<StackWalker.StackFrame> stream)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
stream:Stream<StackWalker.StackFrame>

the function argument

Returns:Class<?>

the function result

org.jboss.logmanager back to summary

private final Class JDKSpecific.GetStackWalkerAction

extends Object
implements PrivilegedAction<StackWalker>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public StackWalker
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GetStackWalkerActionback to summary
pack-priv GetStackWalkerAction()

Method Detail

runback to summary
public StackWalker run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:StackWalker

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.