Package org.apache.camel.dsl.xml.io
Class XmlRoutesBuilderLoader
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.RoutesBuilderLoaderSupport
org.apache.camel.dsl.support.RouteBuilderLoaderSupport
org.apache.camel.dsl.xml.io.XmlRoutesBuilderLoader
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.RoutesBuilderLoader,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
- Direct Known Subclasses:
CamelXmlRoutesBuilderLoader
@ManagedResource(description="Managed XML RoutesBuilderLoader")
@RoutesLoader("xml")
public class XmlRoutesBuilderLoader
extends org.apache.camel.dsl.support.RouteBuilderLoaderSupport
-
Field Summary
FieldsFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDINGFields inherited from interface org.apache.camel.spi.RoutesBuilderLoader
FACTORY_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbindLazyBean(org.apache.camel.model.BeanFactoryDefinition<?> def, String name, Supplier<Object> target) org.apache.camel.builder.RouteBuilderdoLoadRouteBuilder(org.apache.camel.spi.Resource input) voidpreParseRoute(org.apache.camel.spi.Resource resource) Methods inherited from class org.apache.camel.dsl.support.RouteBuilderLoaderSupport
addCompilePostProcessor, addCompilePreProcessor, doBuild, doStart, getCompilePostProcessors, getCompilePreProcessors, getSupportedExtension, isSupportedExtension, loadRoutesBuilder, resourceInputStreamMethods inherited from class org.apache.camel.support.RoutesBuilderLoaderSupport
getCamelContext, setCamelContextMethods inherited from class org.apache.camel.support.service.BaseService
build, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
EXTENSION
- See Also:
-
-
Constructor Details
-
XmlRoutesBuilderLoader
public XmlRoutesBuilderLoader()
-
-
Method Details
-
preParseRoute
- Throws:
Exception
-
doLoadRouteBuilder
public org.apache.camel.builder.RouteBuilder doLoadRouteBuilder(org.apache.camel.spi.Resource input) throws Exception - Specified by:
doLoadRouteBuilderin classorg.apache.camel.dsl.support.RouteBuilderLoaderSupport- Throws:
Exception
-
bindBean
protected void bindBean(org.apache.camel.model.BeanFactoryDefinition<?> def, String name, Object target) throws Exception - Throws:
Exception
-
bindLazyBean
protected void bindLazyBean(org.apache.camel.model.BeanFactoryDefinition<?> def, String name, Supplier<Object> target) throws Exception - Throws:
Exception
-