org.apache.camel.spring.util
Class MainRunner
java.lang.Object
  
org.apache.camel.spring.util.MainRunner
- All Implemented Interfaces: 
 - Runnable, InitializingBean
 
public class MainRunner
- extends Object
- implements InitializingBean, Runnable
  
A simple helper bean for running main classes from within the spring.xml
 usually asynchronous in a background thread; which is useful for demos such
 as running Swing programs in the same JVM.
- Version:
 
  - $Revision: 1025866 $
 
 
 
 
MainRunner
public MainRunner()
toString
public String toString()
- Overrides:
 toString in class Object
 
 
run
public void run()
- Specified by:
 run in interface Runnable
 
 
runMethodWithoutCatchingExceptions
public void runMethodWithoutCatchingExceptions()
                                        throws NoSuchMethodException,
                                               IllegalAccessException,
                                               InvocationTargetException
 
- Throws:
 NoSuchMethodException
IllegalAccessException
InvocationTargetException
 
getArgs
public String[] getArgs()
 
 
setArgs
public void setArgs(String[] args)
 
 
isAsyncRun
public boolean isAsyncRun()
 
 
setAsyncRun
public void setAsyncRun(boolean asyncRun)
 
 
getMain
public Class getMain()
 
 
setMain
public void setMain(Class main)
 
 
getDelay
public long getDelay()
 
 
setDelay
public void setDelay(long delay)
 
 
afterPropertiesSet
public void afterPropertiesSet()
                        throws Exception
- Specified by:
 afterPropertiesSet in interface InitializingBean
 
- Throws:
 Exception
 
Apache CAMEL