| 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 and 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 String |
Assert.checkNotEmptyParam(String name,
String value)
Check that the named parameter is not empty.
|
static <E,T extends Collection<E>> |
Assert.checkNotEmptyParam(String name,
T value)
Check that the named parameter is not empty.
|
static <T> T |
Assert.checkNotNullArrayParam(String name,
int index,
T value)
Check that a value within the named array parameter is not
null. |
static <T> T |
Assert.checkNotNullParam(String name,
T value)
Check that the named parameter is not
null. |
static <T> T |
Assert.checkNotNullParamWithNullPointerException(String name,
T value)
Check that the named parameter is not
null, using a NullPointerException as some specifications
require. |
static IllegalStateException |
Assert.impossibleSwitchCase(int val)
Return an exception indicating that the current switch case was intended to be unreachable.
|
static IllegalStateException |
Assert.impossibleSwitchCase(long val)
Return an exception indicating that the current switch case was intended to be unreachable.
|
static IllegalStateException |
Assert.impossibleSwitchCase(Object obj)
Return an exception indicating that the current switch case was intended to be unreachable.
|
static UnsupportedOperationException |
Assert.unsupported()
Return an exception explaining that the caller's method is not supported.
|
| Modifier and Type | Method and 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 IllegalStateException |
Assert.impossibleSwitchCase(Object obj)
Return an exception indicating that the current switch case was intended to be unreachable.
|
| Modifier and Type | Method and Description |
|---|---|
ContextManager<C> |
Contextual.getInstanceContextManager()
Get the context manager for this object.
|
ContextPermission |
ContextPermission.withActions(String actions)
Create a copy of this permission with the additional given actions.
|
ContextPermission |
ContextPermission.withoutActions(String actions)
Create a copy of this permission without any of the given actions.
|
Copyright © 2015 JBoss, a division of Red Hat, Inc.