|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IsSingleton
Used for defining if a given class is singleton or not. If the class is a singleton, then a single instance will be shared (and hence should be treated as immutable and be used in a thread-safe manner).
This interface is not implemented as a marker interface (i.e., it's necessary to readisSingleton() 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.
| Method Summary | |
|---|---|
boolean |
isSingleton()
Whether this class supports being singleton or not. |
| Method Detail |
|---|
boolean isSingleton()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||