Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
JOnAS: Java(TM) Open Application Server Copyright (C) 2008 Bull S.A.S. Contact: jonas-team@ow2.org This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -------------------------------------------------------------------------- $Id: ICamelWrapper.java 19913 2010-06-02 16:00:27Z alitokmen $ --------------------------------------------------------------------------
 
 package org.ow2.jonas.camel.wrapper;
 
 import java.util.List;
 

Author(s):
Guillaume Renault
 
 public interface ICamelWrapper {
    
Get a producer template for the camel context.

Returns:
a producer for the camel context.
 
Stop the camel context.

Throws:
java.lang.Exception If stopping fails.
 
     void stopContext() throws Exception;

    

Parameters:
builder the route to add.
Throws:
java.lang.Exception If adding routes fails.
 
     void addRoutes(final RouteBuilder builderthrows Exception;

    

Returns:
the list of deployed routes on the camel context.
 
Add values to the registy.

Parameters:
inputStream the input stream containing the entire xml file that defines the entries to add.
Throws:
java.lang.Exception
 
     void addToTheRegistry(final InputStream inputStreamthrows Exception;

    
Remove values from the registy.

Parameters:
inputStream the input stream containing the entire xml file that defines the entries to remove.
 
     void removeFromTheRegistry(final InputStream inputStream);

    

Returns:
the registry wrapper.
 
Add a component on the given camel context.

Parameters:
componentName the component name.
component the component.
 
     void addComponent(final String componentNamefinal Component component);

    

Returns:
the wrapped camel instance.
 
New to GrepCode? Check out our FAQ X