public interface RoutesCollector
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.camel.RoutesBuilder> |
collectRoutesFromRegistry(org.apache.camel.CamelContext camelContext,
String excludePattern,
String includePattern)
Collects the
RoutesBuilder instances which was discovered from the Registry such as
Spring or CDI bean containers. |
List<org.apache.camel.model.rest.RestsDefinition> |
collectXmlRestsFromDirectory(org.apache.camel.CamelContext camelContext,
String directory)
Collects all XML rests from the given directory.
|
List<org.apache.camel.model.RoutesDefinition> |
collectXmlRoutesFromDirectory(org.apache.camel.CamelContext camelContext,
String directory)
Collects all XML routes from the given directory.
|
List<org.apache.camel.RoutesBuilder> collectRoutesFromRegistry(org.apache.camel.CamelContext camelContext, String excludePattern, String includePattern)
RoutesBuilder instances which was discovered from the Registry such as
Spring or CDI bean containers.camelContext - the Camel ContextexcludePattern - exclude pattern (see javaRoutesExcludePattern option)includePattern - include pattern (see javaRoutesIncludePattern option)List<org.apache.camel.model.RoutesDefinition> collectXmlRoutesFromDirectory(org.apache.camel.CamelContext camelContext, String directory) throws Exception
camelContext - the Camel Contextdirectory - the directory (see xmlRoutes option)ExceptionList<org.apache.camel.model.rest.RestsDefinition> collectXmlRestsFromDirectory(org.apache.camel.CamelContext camelContext, String directory) throws Exception
camelContext - the Camel Contextdirectory - the directory (see xmlRests option)ExceptionApache Camel