Package org.apache.camel.dsl.support
Class RouteBuilderLoaderSupport
- 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
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.RoutesBuilderLoader,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
- Direct Known Subclasses:
ExtendedRouteBuilderLoaderSupport
public abstract class RouteBuilderLoaderSupport extends org.apache.camel.support.RoutesBuilderLoaderSupportBase class forRoutesBuilderLoaderimplementations.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRouteBuilderLoaderSupport(String extension)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddCompilePostProcessor(org.apache.camel.spi.CompilePostProcessor preProcessor)Add a customCompilePostProcessorto handle specific post-processing after compiling the source into a Java object.protected voiddoBuild()protected abstract org.apache.camel.builder.RouteBuilderdoLoadRouteBuilder(org.apache.camel.spi.Resource resource)LoadsRoutesBuilderfromResourcefrom the DSL implementation.protected voiddoStart()List<org.apache.camel.spi.CompilePostProcessor>getCompilePostProcessors()Gets the registeredCompilePostProcessor.StringgetSupportedExtension()org.apache.camel.RoutesBuilderloadRoutesBuilder(org.apache.camel.spi.Resource resource)protected InputStreamresourceInputStream(org.apache.camel.spi.Resource resource)Gets the input stream to the resource-
Methods inherited from class org.apache.camel.support.RoutesBuilderLoaderSupport
getCamelContext, setCamelContext
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStop, 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
-
-
-
-
Constructor Detail
-
RouteBuilderLoaderSupport
protected RouteBuilderLoaderSupport(String extension)
-
-
Method Detail
-
getSupportedExtension
@ManagedAttribute(description="Supported file extension") public String getSupportedExtension()
-
getCompilePostProcessors
public List<org.apache.camel.spi.CompilePostProcessor> getCompilePostProcessors()
Gets the registeredCompilePostProcessor.
-
addCompilePostProcessor
public void addCompilePostProcessor(org.apache.camel.spi.CompilePostProcessor preProcessor)
Add a customCompilePostProcessorto handle specific post-processing after compiling the source into a Java object.
-
doBuild
protected void doBuild() throws Exception- Overrides:
doBuildin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStart
protected void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
loadRoutesBuilder
public org.apache.camel.RoutesBuilder loadRoutesBuilder(org.apache.camel.spi.Resource resource) throws Exception- Throws:
Exception
-
resourceInputStream
protected InputStream resourceInputStream(org.apache.camel.spi.Resource resource) throws IOException
Gets the input stream to the resource- Parameters:
resource- the resource- Returns:
- the input stream
- Throws:
IOException
-
doLoadRouteBuilder
protected abstract org.apache.camel.builder.RouteBuilder doLoadRouteBuilder(org.apache.camel.spi.Resource resource) throws ExceptionLoadsRoutesBuilderfromResourcefrom the DSL implementation.- Parameters:
resource- the resource to be loaded.- Returns:
- a
RoutesBuilder - Throws:
Exception
-
-