| Package | Description |
|---|---|
| org.wildfly.common |
Common classes for a variety of purposes.
|
| org.wildfly.common.context |
Types related to management of contextual objects.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
Assert.assertHoldsLock(T monitor) |
Assert that the given monitor is held by the current thread.
|
static <T> T |
Assert.assertNotHoldsLock(T monitor) |
Assert that the given monitor is not held by the current thread.
|
static <T> T |
Assert.assertNotNull(T value) |
Assert that the value is not
null. |
static boolean[] |
Assert.checkNotEmptyParam(java.lang.String name,
boolean[] value) |
Check that the named parameter is not empty.
|
static byte[] |
Assert.checkNotEmptyParam(java.lang.String name,
byte[] value) |
Check that the named parameter is not empty.
|
static double[] |
Assert.checkNotEmptyParam(java.lang.String name,
double[] value) |
Check that the named parameter is not empty.
|
static float[] |
Assert.checkNotEmptyParam(java.lang.String name,
float[] value) |
Check that the named parameter is not empty.
|
static int[] |
Assert.checkNotEmptyParam(java.lang.String name,
int[] value) |
Check that the named parameter is not empty.
|
static long[] |
Assert.checkNotEmptyParam(java.lang.String name,
long[] value) |
Check that the named parameter is not empty.
|
static short[] |
Assert.checkNotEmptyParam(java.lang.String name,
short[] value) |
Check that the named parameter is not empty.
|
static java.lang.String |
Assert.checkNotEmptyParam(java.lang.String name,
java.lang.String value) |
Check that the named parameter is not empty.
|
static <E,T extends java.util.Collection<E>> |
Assert.checkNotEmptyParam(java.lang.String name,
T value) |
Check that the named parameter is not empty.
|
static <K,V,T extends java.util.Map<K,V>> |
Assert.checkNotEmptyParam(java.lang.String name,
T value) |
Check that the named parameter is not empty.
|
static <T> T[] |
Assert.checkNotEmptyParam(java.lang.String name,
T[] value) |
Check that the named parameter is not empty.
|
static <T> T |
Assert.checkNotNullArrayParam(java.lang.String name,
int index,
T value) |
Check that a value within the named array parameter is not
null. |
static <T> T |
Assert.checkNotNullParam(java.lang.String name,
T value) |
Check that the named parameter is not
null. |
static <T> T |
Assert.checkNotNullParamWithNullPointerException(java.lang.String name,
T value) |
Check that the named parameter is not
null, using a NullPointerException as some specifications
require. |
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(int val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(long val) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(java.lang.Object obj) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
static java.lang.UnsupportedOperationException |
Assert.unsupported() |
Return an exception explaining that the caller's method is not supported.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
Assert.assertHoldsLock(T monitor) |
Assert that the given monitor is held by the current thread.
|
static <T> T |
Assert.assertNotHoldsLock(T monitor) |
Assert that the given monitor is not held by the current thread.
|
static java.lang.IllegalStateException |
Assert.impossibleSwitchCase(java.lang.Object obj) |
Return an exception indicating that the current switch case was intended to be unreachable.
|
| Modifier and Type | Method | Description |
|---|---|---|
ContextManager<C> |
Contextual.getInstanceContextManager() |
Get the context manager for this object.
|
ContextPermission |
ContextPermission.withActions(java.lang.String actions) |
Create a copy of this permission with the additional given actions.
|
ContextPermission |
ContextPermission.withoutActions(java.lang.String actions) |
Create a copy of this permission without any of the given actions.
|
Copyright © 2017 JBoss, a division of Red Hat, Inc.