Interface ResourceLoader

All Superinterfaces:
CamelContextAware, HasCamelContext

public interface ResourceLoader extends CamelContextAware
SPI for loading a Resource from a URI.

The resource loader is the entry point Camel uses to turn a location (such as file:routes.yaml or classpath:rules.txt) into a Resource. It selects the appropriate scheme-specific ResourceResolver to perform the actual resolution. A single loader is registered per CamelContext under the "resource-loader" factory key.

Since:
3.9
See Also:
  • Field Details

  • Method Details

    • resolveResource

      Resource resolveResource(String uri)
      Loads Resource from uri.
      Parameters:
      uri - the location of the resource to resolve.
      Returns:
      an optional Resource