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, trySetCamelContext
static final String FACTORY
default void loadRoutes(Collection<Resource> resources) throws Exception
resources
- the resources to be loaded.Exception
default void loadRoutes(Resource... resources) throws Exception
resources
- the resources to be loaded.Exception
default 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.Exception
default 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.Exception
default Collection<RoutesBuilder> findRoutesBuilders(Resource... resources) throws Exception
RoutesBuilder
from the give list of Resource
.resources
- the resource to be loaded.RoutesBuilder
Exception
Collection<RoutesBuilder> findRoutesBuilders(Collection<Resource> resources) throws Exception
RoutesBuilder
from the give list of Resource
.resources
- the resource to be loaded.RoutesBuilder
Exception
Apache Camel