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 TypeMethodDescriptionvoidDeprecated.org.apache.camel.CamelContextorg.apache.camel.main.MaingetMain()org.apache.camel.main.MainShutdownStrategyvoidrun()Runs the application and blocks the main thread and shutdown Camel graceful when the JVM is stopping.voidsetCamelContext(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:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin 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()