Package com.skava.orchestration
Class CamelContextUtilityBean
java.lang.Object
com.skava.orchestration.CamelContextUtilityBean
The Class CamelContextUtilityBean
Camel context utility class for loading external routes and RESTs.- Since:
- Dec 12, 2018
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRoutes(org.apache.camel.CamelContext context) voidloadXmlRests(org.apache.camel.CamelContext camelContext, String directory) This method is used to load XML rests from the xml resources which are available under the specified directory.voidloadXmlRoutes(org.apache.camel.CamelContext camelContext, String directory) This method is used to load XML routes from the xml resources which are available under the specified directory.voidupdateRestDefinitions(org.apache.camel.CamelContext camelContext) updateRestDefinitions
-
Constructor Details
-
CamelContextUtilityBean
public CamelContextUtilityBean()
-
-
Method Details
-
loadXmlRoutes
public void loadXmlRoutes(org.apache.camel.CamelContext camelContext, String directory) throws Exception This method is used to load XML routes from the xml resources which are available under the specified directory.- Parameters:
camelContext- Indicates aCamelContextdirectory- Indicates a directory of the xml files.- Throws:
Exception- Throws exceptions produced by failed or interrupted operations.
-
loadXmlRests
public void loadXmlRests(org.apache.camel.CamelContext camelContext, String directory) throws Exception This method is used to load XML rests from the xml resources which are available under the specified directory.- Parameters:
camelContext- Indicates aCamelContextdirectory- Indicates a directory of the xml files.- Throws:
Exception- Throws exceptions produced by failed or interrupted operations.
-
updateRestDefinitions
public void updateRestDefinitions(org.apache.camel.CamelContext camelContext) updateRestDefinitions- Parameters:
camelContext- camelContext
-
getRoutes
- Parameters:
context- - camel contest- Returns:
- list of route id
-