public interface RoutesLoader extends CamelContextAware
RoutesBuilder from a list of Resource.| Modifier and Type | Field and Description |
|---|---|
static String |
FACTORY
Service factory key.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<RoutesBuilder> |
findRoutesBuilders(Collection<Resource> resources)
Find
RoutesBuilder from the give list of Resource. |
default Collection<RoutesBuilder> |
findRoutesBuilders(Resource... resources)
Find
RoutesBuilder from the give list of Resource. |
default void |
loadRoutes(Collection<Resource> resources)
|
default void |
loadRoutes(Resource... resources)
|
default Set<String> |
updateRoutes(Collection<Resource> resources)
Loads or updates existing
RoutesBuilder from the give list of Resource into the current
CamelContext. |
default Set<String> |
updateRoutes(Resource... resources)
Loads or updates existing
RoutesBuilder from the give list of Resource into the current
CamelContext. |
getCamelContext, setCamelContext, trySetCamelContextstatic final String FACTORY
default void loadRoutes(Collection<Resource> resources) throws Exception
resources - the resources to be loaded.Exceptiondefault void loadRoutes(Resource... resources) throws Exception
resources - the resources to be loaded.Exceptiondefault Set<String> updateRoutes(Resource... resources) throws Exception
RoutesBuilder from the give list of Resource into the current
CamelContext.
If a route is loaded with a route id for an existing route, then the existing route is stopped and remove, so it
can be updated.resources - the resources to be loaded or updated.Exceptiondefault Set<String> updateRoutes(Collection<Resource> resources) throws Exception
RoutesBuilder from the give list of Resource into the current
CamelContext.
If a route is loaded with a route id for an existing route, then the existing route is stopped and remove, so it
can be updated.resources - the resources to be loaded or updated.Exceptiondefault Collection<RoutesBuilder> findRoutesBuilders(Resource... resources) throws Exception
RoutesBuilder from the give list of Resource.resources - the resource to be loaded.RoutesBuilderExceptionCollection<RoutesBuilder> findRoutesBuilders(Collection<Resource> resources) throws Exception
RoutesBuilder from the give list of Resource.resources - the resource to be loaded.RoutesBuilderExceptionApache Camel