org.apache.camel.spring
Class Main
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.MainSupport
org.apache.camel.spring.Main
- All Implemented Interfaces:
- Service
public class Main
- extends MainSupport
A command line tool for booting up a CamelContext using an optional Spring
ApplicationContext
- Version:
- $Revision: 758539 $
Constructor Summary |
Main()
|
Methods inherited from class org.apache.camel.impl.MainSupport |
addOption, addRouteBuilder, completed, generateDot, getCamelContexts, getCamelTemplate, getDebugger, getDotOutputDir, getDuration, getRouteBuilders, getRouteDefinitions, getRoutesOutputFile, getTimeUnit, isAggregateDot, isDebug, isTrace, outputRoutesToFile, parseArguments, postProcesCamelContext, postProcessContext, run, run, setAggregateDot, setDotOutputDir, setDuration, setRouteBuilders, setRoutesOutputFile, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompleted |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static Main instance
Main
public Main()
main
public static void main(String... args)
getInstance
public static Main getInstance()
- Returns the currently executing main
- Returns:
- the current running instance
enableHangupSupport
public void enableHangupSupport()
- Enables the hangup support. Gracefully stops by calling stop() on a
Hangup signal.
enableDebug
public void enableDebug()
- Overrides:
enableDebug
in class MainSupport
enableTrace
public void enableTrace()
- Overrides:
enableTrace
in class MainSupport
getApplicationContext
public org.springframework.context.support.AbstractApplicationContext getApplicationContext()
setApplicationContext
public void setApplicationContext(org.springframework.context.support.AbstractApplicationContext applicationContext)
getApplicationContextUri
public String getApplicationContextUri()
setApplicationContextUri
public void setApplicationContextUri(String applicationContextUri)
getFileApplicationContextUri
public String getFileApplicationContextUri()
setFileApplicationContextUri
public void setFileApplicationContextUri(String fileApplicationContextUri)
getParentApplicationContext
public org.springframework.context.support.AbstractApplicationContext getParentApplicationContext()
setParentApplicationContext
public void setParentApplicationContext(org.springframework.context.support.AbstractApplicationContext parentApplicationContext)
getParentApplicationContextUri
public String getParentApplicationContextUri()
setParentApplicationContextUri
public void setParentApplicationContextUri(String parentApplicationContextUri)
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class MainSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class MainSupport
- Throws:
Exception
findOrCreateCamelTemplate
protected ProducerTemplate findOrCreateCamelTemplate()
- Specified by:
findOrCreateCamelTemplate
in class MainSupport
createDefaultApplicationContext
protected org.springframework.context.support.AbstractApplicationContext createDefaultApplicationContext()
getCamelContextMap
protected Map<String,CamelContext> getCamelContextMap()
- Specified by:
getCamelContextMap
in class MainSupport
createModelFileGenerator
protected ModelFileGenerator createModelFileGenerator()
throws JAXBException
- Specified by:
createModelFileGenerator
in class MainSupport
- Throws:
JAXBException
Copyright © 2009 Apache Software Foundation. All Rights Reserved.