org.ow2.jonas.camel.route.base
Class CamelRouteBase

java.lang.Object
  extended by org.ow2.jonas.camel.route.base.CamelRouteBase

public abstract class CamelRouteBase
extends java.lang.Object

Abstract class : the iPOJO should be implement this class to use Camel Service and add Route

Author:
chahinem

Constructor Summary
CamelRouteBase(org.apache.camel.builder.RouteBuilder routeBuilder)
           
 
Method Summary
protected abstract  void configureCamel(org.ow2.jonas.camel.service.api.ICamelService camelService, java.lang.String camelContextName)
          Adds extra configuration to the camel instance, for example a JNDI registry or some registry entries.
 void start()
          Start the route bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamelRouteBase

public CamelRouteBase(org.apache.camel.builder.RouteBuilder routeBuilder)
Method Detail

start

public final void start()
                 throws java.lang.Exception
Start the route bundle.

Throws:
java.lang.Exception

configureCamel

protected abstract void configureCamel(org.ow2.jonas.camel.service.api.ICamelService camelService,
                                       java.lang.String camelContextName)
Adds extra configuration to the camel instance, for example a JNDI registry or some registry entries.

Parameters:
camelService - camel service.
camelContextName - name of the current camel context in the camel service.


Copyright © 2009 OW2 Consortium. All Rights Reserved.