Package org.apache.camel.impl.engine
Class DefaultRoutesLoader
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.impl.engine.DefaultRoutesLoader
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.RoutesLoader
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class DefaultRoutesLoader extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.RoutesLoader
DefaultRoutesLoader
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROUTES_LOADER_KEY_PREFIX
Prefix to use for looking up existingRoutesLoader
from theRegistry
.
-
Constructor Summary
Constructors Constructor Description DefaultRoutesLoader()
DefaultRoutesLoader(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStop()
Collection<org.apache.camel.RoutesBuilder>
findRoutesBuilders(Collection<org.apache.camel.spi.Resource> resources)
org.apache.camel.CamelContext
getCamelContext()
void
setCamelContext(org.apache.camel.CamelContext camelContext)
-
Methods inherited from class org.apache.camel.support.service.BaseService
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, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.spi.RoutesLoader
findRoutesBuilders, loadRoutes, loadRoutes
-
-
-
-
Field Detail
-
ROUTES_LOADER_KEY_PREFIX
public static final String ROUTES_LOADER_KEY_PREFIX
Prefix to use for looking up existingRoutesLoader
from theRegistry
.- See Also:
- Constant Field Values
-
-
Method Detail
-
doStop
public void doStop() throws Exception
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
findRoutesBuilders
public Collection<org.apache.camel.RoutesBuilder> findRoutesBuilders(Collection<org.apache.camel.spi.Resource> resources) throws Exception
- Specified by:
findRoutesBuilders
in interfaceorg.apache.camel.spi.RoutesLoader
- Throws:
Exception
-
-