public final class HiveMind extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INTERFACE_SYNTHESIZER_SERVICE
The full id of the
InterfaceSynthesizer service. |
static java.lang.Object |
INTROSPECTOR_MUTEX
An object used to synchronize access to
Introspector (which is not fully
threadsafe). |
static java.lang.String |
THREAD_EVENT_NOTIFIER_SERVICE
The full id of the
ThreadEventNotifier service. |
static java.lang.String |
THREAD_LOCALE_SERVICE
The full id of the
ThreadLocale service. |
Modifier and Type | Method and Description |
---|---|
static ApplicationRuntimeException |
createRegistryShutdownException() |
static Location |
findLocation(java.lang.Object[] locations)
Selects the first
Location in an array of objects. |
static Location |
getLocation(java.lang.Object object)
|
static java.lang.String |
getLocationString(java.lang.Object object)
Invokes
getLocation(Object) , then translate the result to a string value, or
"unknown location" if null. |
static boolean |
isBlank(java.lang.String string)
Returns true if the string is null, empty, or contains only whitespace.
|
static boolean |
isEmpty(java.util.Collection c)
Returns true if the Collection is null or empty.
|
static boolean |
isNonBlank(java.lang.String string)
As with
isBlank(String) , but inverts the response. |
static void |
setLocation(java.lang.Object holder,
Location location)
Updates the location of an object, if the object implements
LocationHolder . |
public static final java.lang.String THREAD_EVENT_NOTIFIER_SERVICE
ThreadEventNotifier
service.public static final java.lang.String THREAD_LOCALE_SERVICE
ThreadLocale
service.public static final java.lang.String INTERFACE_SYNTHESIZER_SERVICE
InterfaceSynthesizer
service.public static final java.lang.Object INTROSPECTOR_MUTEX
Introspector
(which is not fully
threadsafe).public static ApplicationRuntimeException createRegistryShutdownException()
public static Location findLocation(java.lang.Object[] locations)
public static Location getLocation(java.lang.Object object)
public static java.lang.String getLocationString(java.lang.Object object)
getLocation(Object)
, then translate the result to a string value, or
"unknown location" if null.public static boolean isBlank(java.lang.String string)
The commons-lang library provides a version of this, but the naming and behavior changed between 1.0 and 2.0, which causes some dependency issues.
public static boolean isNonBlank(java.lang.String string)
isBlank(String)
, but inverts the response.public static void setLocation(java.lang.Object holder, Location location)
LocationHolder
.holder
- the object to be updatedlocation
- the location to assign to the holder objectpublic static boolean isEmpty(java.util.Collection c)