org.apache.camel.spring
Class Main

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.spring.Main
All Implemented Interfaces:
org.apache.camel.Service

public class Main
extends org.apache.camel.impl.ServiceSupport

A command line tool for booting up a CamelContext using an optional Spring ApplicationContext

Version:
$Revision: $

Nested Class Summary
 class Main.Option
           
 class Main.ParameterOption
           
 
Constructor Summary
Main()
           
 
Method Summary
 void addOption(Main.Option option)
           
 void completed()
          Marks this process as being completed
protected  org.springframework.context.support.AbstractApplicationContext createDefaultApplicationContext()
           
protected  void doStart()
           
protected  void doStop()
           
 org.springframework.context.support.AbstractApplicationContext getApplicationContext()
           
 String getApplicationContextUri()
           
protected  String getVersion()
           
static void main(String[] args)
           
 void parseArguments(String[] arguments)
          Parses the commandl ine arguments
 void run()
          Runs this process with the given arguments
 void run(String[] args)
          Parses the command line arguments then runs the program
 void setApplicationContext(org.springframework.context.support.AbstractApplicationContext applicationContext)
           
 void setApplicationContextUri(String applicationContextUri)
           
 void showOptions()
          Displays the command line options
protected  void waitUntilCompleted()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)

run

public void run(String[] args)
Parses the command line arguments then runs the program


run

public void run()
Runs this process with the given arguments


completed

public void completed()
Marks this process as being completed


showOptions

public void showOptions()
Displays the command line options


parseArguments

public void parseArguments(String[] arguments)
Parses the commandl ine arguments


addOption

public void addOption(Main.Option option)

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)

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class org.apache.camel.impl.ServiceSupport
Throws:
Exception

createDefaultApplicationContext

protected org.springframework.context.support.AbstractApplicationContext createDefaultApplicationContext()

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class org.apache.camel.impl.ServiceSupport
Throws:
Exception

waitUntilCompleted

protected void waitUntilCompleted()

getVersion

protected String getVersion()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.