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 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 <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 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 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 and 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 © 2015 JBoss, a division of Red Hat, Inc.