Top Inners Constructors Methods
org.jboss.logmanager.handlers

pack-priv Class SecurityActions

extends Object
Class Inheritance
Imports
java.security.AccessControlContext, .AccessController, .PrivilegedAction, java.util.function.Supplier, java.util.logging.ErrorManager, .Handler

Author
James R. Perkins

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static ErrorManager
getErrorManager(final AccessControlContext acc, final Handler handler)
References Deprecated AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SecurityActionsback to summary
pack-priv SecurityActions()

Method Detail

getErrorManagerback to summary
pack-priv static ErrorManager getErrorManager(final AccessControlContext acc, final Handler handler)

References Deprecated

AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

org.jboss.logmanager.handlers back to summary

private Class SecurityActions.LazyErrorManager

extends ErrorManager
Class Inheritance

Field Summary

Modifier and TypeField and Description
private volatile ErrorManager
private final Supplier<ErrorManager>
Inherited from java.util.logging.ErrorManager:
CLOSE_FAILUREFLUSH_FAILUREFORMAT_FAILUREGENERIC_FAILUREOPEN_FAILUREWRITE_FAILURE

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public synchronized void
error(final String
a descriptive string (may be null)
msg
,
final Exception
an exception (may be null)
ex
,
final int
an error code defined in ErrorManager
code
)

Overrides java.util.logging.ErrorManager.error.

The error method is called when a Handler failure occurs.

private ErrorManager

Field Detail

delegateback to summary
private volatile ErrorManager delegate
supplierback to summary
private final Supplier<ErrorManager> supplier

Constructor Detail

LazyErrorManagerback to summary
private LazyErrorManager(final Supplier<ErrorManager> supplier)

Method Detail

errorback to summary
public synchronized void error(final String msg, final Exception ex, final int code)

Overrides java.util.logging.ErrorManager.error.

Doc from java.util.logging.ErrorManager.error.

The error method is called when a Handler failure occurs.

This method may be overridden in subclasses. The default behavior in this base class is that the first call is reported to System.err, and subsequent calls are ignored.

Parameters
msg:String

a descriptive string (may be null)

ex:Exception

an exception (may be null)

code:int

an error code defined in ErrorManager

Annotations
@Override
getDelegateback to summary
private ErrorManager getDelegate()