Package org.apache.camel.spi
Interface ComponentResolver
-
public interface ComponentResolverRepresents a resolver of components from a URI to be able to auto-load them using some discovery mechanism likeorg.apache.camel.impl.DefaultComponentResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ComponentresolveComponent(String name, CamelContext context)Attempts to resolve the component for the given URI
-
-
-
Method Detail
-
resolveComponent
Component resolveComponent(String name, CamelContext context) throws Exception
Attempts to resolve the component for the given URI- Parameters:
name- the component name to resolvecontext- the context to load the component if it can be resolved- Returns:
- the component which is added to the context or null if it cannot be resolved
- Throws:
Exception- is thrown if the component could not be loaded
-
-