Package org.jboss.as.logging
Class Logging
- java.lang.Object
-
- org.jboss.as.logging.Logging
-
public final class Logging extends Object
A set of utilities for the logging subsystem.- Since:
- 7.1.0
- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationFailedExceptioncreateOperationFailure(String message)Creates a newOperationFailedExceptionwith the message as amodel node.static OperationFailedExceptioncreateOperationFailure(Throwable cause, String message)Creates a newOperationFailedExceptionwith the message as amodel nodeand the cause.static <T> T[]join(T[] base, T... add)Joins two arrays.static booleanrequiresReload(Set<AttributeAccess.Flag> flags)Checks to see within the flags if a reload, i.e.static booleanrequiresRestart(Set<AttributeAccess.Flag> flags)Checks to see within the flags if a restart of any kind is required.
-
-
-
Method Detail
-
requiresRestart
public static boolean requiresRestart(Set<AttributeAccess.Flag> flags)
Checks to see within the flags if a restart of any kind is required.- Parameters:
flags- the flags to check- Returns:
trueif a restart is required, otherwisefalse
-
requiresReload
public static boolean requiresReload(Set<AttributeAccess.Flag> flags)
Checks to see within the flags if a reload, i.e. not a full restart, is required.- Parameters:
flags- the flags to check- Returns:
trueif a reload is required, otherwisefalse
-
createOperationFailure
public static OperationFailedException createOperationFailure(String message)
Creates a newOperationFailedExceptionwith the message as amodel node.- Parameters:
message- the message to initialize themodel nodewith- Returns:
- a new
OperationFailedException
-
createOperationFailure
public static OperationFailedException createOperationFailure(Throwable cause, String message)
Creates a newOperationFailedExceptionwith the message as amodel nodeand the cause.- Parameters:
cause- the cause of the errormessage- the message to initialize themodel nodewith- Returns:
- a new
OperationFailedException
-
join
public static <T> T[] join(T[] base, T... add)Joins two arrays. If the base array is null, theaddparameter is returned. If the add array is null, thebasearray is returned.- Type Parameters:
T- the type of the array- Parameters:
base- the base array to add toadd- the array to add- Returns:
- the joined array
-
-