|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.osgi.util.OsgiStringUtils
public abstract class OsgiStringUtils
Utility class for creating nice string representations of various OSGi classes.
Field Summary | |
---|---|
static Constants |
BUNDLE_EVENTS
|
static Constants |
BUNDLE_STATES
|
static Constants |
FRAMEWORK_EVENTS
|
static Constants |
SERVICE_EVENTS
|
Constructor Summary | |
---|---|
OsgiStringUtils()
|
Method Summary | |
---|---|
static String |
bundleStateAsString(Bundle bundle)
Return the Bundle state as a String. |
static String |
nullSafeBundleEventToString(int eventType)
Return a null-safe String representation for the given bundle event. |
static String |
nullSafeName(Bundle bundle)
|
static String |
nullSafeNameAndSymName(Bundle bundle)
Return the bundle name and symbolic name - useful when logging bundle info. |
static String |
nullSafeSymbolicName(Bundle bundle)
Return the bundle symbolic name in a null safe manner (null will never be returned). |
static String |
nullSafeToString(BundleEvent event)
Return a null-safe String representation for the given bundle event. |
static String |
nullSafeToString(FrameworkEvent event)
Return a null-safe String representation for the given FrameworkEvent. |
static String |
nullSafeToString(ServiceEvent event)
Return a null-safe String representation for the given ServiceEvent. |
static String |
nullSafeToString(ServiceReference reference)
Produce a nice string representation of the given ServiceReference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Constants BUNDLE_EVENTS
public static final Constants FRAMEWORK_EVENTS
public static final Constants SERVICE_EVENTS
public static final Constants BUNDLE_STATES
Constructor Detail |
---|
public OsgiStringUtils()
Method Detail |
---|
public static String nullSafeBundleEventToString(int eventType)
eventType
- bundle event given as an int
public static String nullSafeToString(BundleEvent event)
event
- OSGi BundleEvent
public static String nullSafeToString(ServiceEvent event)
event
- OSGi ServiceEvent
public static String nullSafeToString(FrameworkEvent event)
event
- OSGi FrameworkEvent
public static String nullSafeToString(ServiceReference reference)
reference
- OSGi service reference
public static String bundleStateAsString(Bundle bundle)
bundle
- OSGi bundle
public static String nullSafeSymbolicName(Bundle bundle)
bundle
- OSGi bundle
public static String nullSafeName(Bundle bundle)
public static String nullSafeNameAndSymName(Bundle bundle)
bundle
- OSGi bundle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |