|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.main.MainSupport
org.apache.camel.guice.Main
public class Main
A command line tool for booting up a CamelContext using a Guice Injector via JNDI assuming that a valid jndi.properties is on the classpath
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.camel.main.MainSupport |
|---|
org.apache.camel.main.MainSupport.Option, org.apache.camel.main.MainSupport.ParameterOption |
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.main.MainSupport |
|---|
aggregateDot, camelContexts, camelTemplate, completed, dotOutputDir, duration, latch, LOG, options, routeBuilders, routesOutputFile, timeUnit, trace |
| Fields inherited from class org.apache.camel.support.ServiceSupport |
|---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Constructor Summary | |
|---|---|
Main()
|
|
| Method Summary | |
|---|---|
protected org.apache.camel.view.ModelFileGenerator |
createModelFileGenerator()
|
protected void |
doStart()
|
protected void |
doStop()
|
protected org.apache.camel.ProducerTemplate |
findOrCreateCamelTemplate()
|
protected Map<String,org.apache.camel.CamelContext> |
getCamelContextMap()
|
protected com.google.inject.Injector |
getInjector()
|
protected com.google.inject.Injector |
getInjectorFromContext()
|
static Main |
getInstance()
Returns the currently executing main |
String |
getJndiProperties()
|
static void |
main(String... args)
|
protected void |
setInjector(com.google.inject.Injector injector)
|
void |
setJndiProperties(String properties)
|
| Methods inherited from class org.apache.camel.main.MainSupport |
|---|
addOption, addRouteBuilder, afterStart, beforeStop, completed, enableHangupSupport, enableTrace, generateDot, getCamelContexts, getCamelTemplate, getDotOutputDir, getDuration, getRouteBuilders, getRouteDefinitions, getRoutesOutputFile, getTimeUnit, isAggregateDot, isTrace, outputRoutesToFile, parseArguments, postProcessCamelContext, postProcessContext, run, run, setAggregateDot, setDotOutputDir, setDuration, setRouteBuilders, setRoutesOutputFile, setTimeUnit, showOptions, showOptionsHeader, waitUntilCompleted |
| Methods inherited from class org.apache.camel.support.ServiceSupport |
|---|
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public void setJndiProperties(String properties)
public String getJndiProperties()
public static void main(String... args)
throws Exception
Exceptionpublic static Main getInstance()
protected void setInjector(com.google.inject.Injector injector)
protected com.google.inject.Injector getInjector()
protected com.google.inject.Injector getInjectorFromContext()
throws Exception
Exception
protected void doStart()
throws Exception
doStart in class org.apache.camel.main.MainSupportException
protected void doStop()
throws Exception
doStop in class org.apache.camel.main.MainSupportExceptionprotected org.apache.camel.ProducerTemplate findOrCreateCamelTemplate()
findOrCreateCamelTemplate in class org.apache.camel.main.MainSupportprotected Map<String,org.apache.camel.CamelContext> getCamelContextMap()
getCamelContextMap in class org.apache.camel.main.MainSupport
protected org.apache.camel.view.ModelFileGenerator createModelFileGenerator()
throws JAXBException
createModelFileGenerator in class org.apache.camel.main.MainSupportJAXBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||