Package org.apache.camel.spi
Class CamelContextTracker
java.lang.Object
org.apache.camel.spi.CamelContextTracker
- All Implemented Interfaces:
Closeable,AutoCloseable
A
CamelContext creation and destruction tracker.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(CamelContext camelContext) Called to determine whether this tracker should accept the given context.final voidclose()Closes the tracker so it not longer tracks.voidcontextCreated(CamelContext camelContext) Called when a context is created.voidcontextDestroyed(CamelContext camelContext) Called when a context has been shutdown.static voidnotifyContextCreated(CamelContext camelContext) static voidnotifyContextDestroyed(CamelContext camelContext) final voidopen()Opens the tracker to start tracking when newCamelContextis created or destroyed.
-
Constructor Details
-
CamelContextTracker
public CamelContextTracker() -
CamelContextTracker
-
-
Method Details
-
accept
Called to determine whether this tracker should accept the given context. -
contextCreated
Called when a context is created. -
contextDestroyed
Called when a context has been shutdown. -
open
public final void open()Opens the tracker to start tracking when newCamelContextis created or destroyed. -
close
public final void close()Closes the tracker so it not longer tracks.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
notifyContextCreated
-
notifyContextDestroyed
-