Package org.apache.camel.dsl.support
Class DefaultSourceLoader
java.lang.Object
org.apache.camel.dsl.support.DefaultSourceLoader
- All Implemented Interfaces:
SourceLoader
Default
SourceLoader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadResource(org.apache.camel.spi.Resource resource) Loads the source from the given resource
-
Constructor Details
-
DefaultSourceLoader
public DefaultSourceLoader()
-
-
Method Details
-
loadResource
Description copied from interface:SourceLoaderLoads the source from the given resource- Specified by:
loadResourcein interfaceSourceLoader- Parameters:
resource- the resource- Returns:
- the source code (such as java, xml, groovy, yaml)
- Throws:
IOException- is thrown if error loading the source
-