org.apache.camel.util
Class PlatformHelper
java.lang.Object
org.apache.camel.util.PlatformHelper
public final class PlatformHelper
- extends Object
Utility dedicated for resolving runtime information related to the platform on which Camel is currently running.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isOsgiContext
public static boolean isOsgiContext(CamelContext camelContext)
- Determine whether Camel is OSGi-aware. Current implementation of the method checks if the name of the
CamelContext
matches the names of the known OSGi-aware contexts.
- Parameters:
camelContext
- context to be tested against OSGi-awareness
- Returns:
- true if given context is OSGi-aware, false otherwise
Apache Camel