Package org.apache.camel.k.main
Class ApplicationRuntime
- java.lang.Object
-
- org.apache.camel.k.main.ApplicationRuntime
-
- All Implemented Interfaces:
AutoCloseable
,Runtime
,org.apache.camel.spi.HasCamelContext
public final class ApplicationRuntime extends Object implements Runtime
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.camel.k.Runtime
Runtime.Listener, Runtime.Phase
-
-
Constructor Summary
Constructors Constructor Description ApplicationRuntime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(Runtime.Listener listener)
void
addListener(Runtime.Phase phase, org.apache.camel.util.function.ThrowingConsumer<Runtime,Exception> consumer)
void
addListeners(Iterable<Runtime.Listener> listeners)
void
addRoutes(org.apache.camel.RoutesBuilder builder)
org.apache.camel.CamelContext
getCamelContext()
void
run()
void
setInitialProperties(Properties properties)
void
setProperties(Properties properties)
void
stop()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.k.Runtime
close, getCamelContext, getRegistry, setInitialProperties, setInitialProperties, setProperties, setProperties, setPropertiesLocations, setPropertiesLocations
-
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
addRoutes
public void addRoutes(org.apache.camel.RoutesBuilder builder)
-
setInitialProperties
public void setInitialProperties(Properties properties)
- Specified by:
setInitialProperties
in interfaceRuntime
-
setProperties
public void setProperties(Properties properties)
- Specified by:
setProperties
in interfaceRuntime
-
addListeners
public void addListeners(Iterable<Runtime.Listener> listeners)
-
addListener
public void addListener(Runtime.Listener listener)
-
addListener
public void addListener(Runtime.Phase phase, org.apache.camel.util.function.ThrowingConsumer<Runtime,Exception> consumer)
-
-