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 is very often singleton based, only a few components is not.Modifier and Type | Method and Description |
---|---|
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
boolean isSingleton()
Apache Camel