Package org.apache.camel.k
Interface SourceLoader
-
public interface SourceLoader
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SourceLoader.Interceptor
static interface
SourceLoader.Result
Represent the result of the process of loading aSource
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>
getSupportedLanguages()
Provides a list of the languages supported by this loader.SourceLoader.Result
load(Runtime runtime, Source source)
Creates a camelRoutesBuilder
from the given resource.
-
-
-
Method Detail
-
getSupportedLanguages
List<String> getSupportedLanguages()
Provides a list of the languages supported by this loader.- Returns:
- the supported languages.
-
load
SourceLoader.Result load(Runtime runtime, Source source) throws Exception
Creates a camelRoutesBuilder
from the given resource.- Parameters:
runtime
- the runtime.source
- the source to load.- Returns:
- the RoutesBuilder.
- Throws:
Exception
-
-