public interface IsSingleton
isSingleton() instead
of instanceof(IsSingleton)). This allows for subclasses to have a singleton status different from a parent
and for objects to have this value dynamically changed.
Camel component are very often singleton based, only a few components are not.| Modifier and Type | Method and Description |
|---|---|
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
static boolean |
test(Object instance)
Test if the given
instance is a singleton or not. |
static boolean test(Object instance)
instance is a singleton or not.instance - the instance ot checkinstance is a singletonboolean isSingleton()
Apache Camel