Package org.apache.camel.spring.boot
Class CamelSpringBootApplicationController
java.lang.Object
org.apache.camel.spring.boot.CamelSpringBootApplicationController
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.spi.HasCamelContext
public class CamelSpringBootApplicationController
extends Object
implements org.apache.camel.CamelContextAware
-
Constructor Summary
ConstructorsConstructorDescriptionCamelSpringBootApplicationController
(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.org.apache.camel.CamelContext
org.apache.camel.main.Main
getMain()
org.apache.camel.main.MainShutdownStrategy
void
run()
Runs the application and blocks the main thread and shutdown Camel graceful when the JVM is stopping.void
setCamelContext
(org.apache.camel.CamelContext camelContext)
-
Constructor Details
-
CamelSpringBootApplicationController
public CamelSpringBootApplicationController(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
getMain
public org.apache.camel.main.Main getMain() -
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
getMainShutdownStrategy
public org.apache.camel.main.MainShutdownStrategy getMainShutdownStrategy() -
getMainCompletedTask
-
run
public void run()Runs the application and blocks the main thread and shutdown Camel graceful when the JVM is stopping. -
blockMainThread
Deprecated.userun()
-
run()