Toggle navigation
Home
org.apache.camel.main.MainSupport to org.apache.camel.main.Main
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'camel'}
Hierarchy/Composition: R_SUPER_T
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Cascading Type Change (Similar)
MainSupport
to
Main
Update Anonymous class
{ @Override protected ProducerTemplate findOrCreateCamelTemplate(){ return applicationContext.getBean(ProducerTemplate.class); } @Override protected Map<String,CamelContext> getCamelContextMap(){ return Collections.singletonMap("camelContext",camelContext); } }
to
{ @Override protected ProducerTemplate findOrCreateCamelTemplate(){ return applicationContext.getBean(ProducerTemplate.class); } @Override protected Map<String,CamelContext> getCamelContextMap(){ return Collections.singletonMap("camelContext",camelContext); } @Override protected void doStop() throws Exception { LOG.debug("Controller is shutting down CamelContext"); try { super.doStop(); } finally { latch.countDown(); } } }
Rename Variable
mainSupport
to
main
mainSupport
to
main