public class DefaultRoutesLoader
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.RoutesLoader
RoutesLoader.| Modifier and Type | Field and Description |
|---|---|
static String |
ROUTES_LOADER_KEY_PREFIX
Prefix to use for looking up existing
RoutesLoader from the Registry. |
| Constructor and Description |
|---|
DefaultRoutesLoader() |
DefaultRoutesLoader(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStop() |
Collection<org.apache.camel.RoutesBuilder> |
findRoutesBuilders(Collection<org.apache.camel.spi.Resource> resources) |
org.apache.camel.CamelContext |
getCamelContext() |
protected org.apache.camel.spi.RoutesBuilderLoader |
getRoutesLoader(String extension)
Looks up a
RoutesBuilderLoader in the registry or fallback to a factory finder mechanism if none found. |
protected org.apache.camel.spi.RoutesBuilderLoader |
resolveService(String extension)
Looks up a
RoutesBuilderLoader for the given extension with factory finder. |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindRoutesBuilders, loadRoutes, loadRoutes, updateRoutes, updateRoutespublic static final String ROUTES_LOADER_KEY_PREFIX
RoutesLoader from the Registry.public DefaultRoutesLoader()
public DefaultRoutesLoader(org.apache.camel.CamelContext camelContext)
public void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic Collection<org.apache.camel.RoutesBuilder> findRoutesBuilders(Collection<org.apache.camel.spi.Resource> resources) throws Exception
findRoutesBuilders in interface org.apache.camel.spi.RoutesLoaderExceptionprotected org.apache.camel.spi.RoutesBuilderLoader getRoutesLoader(String extension) throws Exception
RoutesBuilderLoader in the registry or fallback to a factory finder mechanism if none found.extension - the file extension for which a loader should be find.RoutesBuilderLoaderIllegalArgumentException - if no RoutesBuilderLoader can be found for the given file extensionExceptionprotected org.apache.camel.spi.RoutesBuilderLoader resolveService(String extension)
RoutesBuilderLoader for the given extension with factory finder.extension - the file extension for which a loader should be found.RoutesBuilderLoader or null if none foundApache Camel