Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
Pluggable Class ResolversAvailable since Camel 2.0 Camel provides pluggable class resolvers allowing third party platforms and contains to provide their own resolvers in case the default ones does not work on their platform. For example we provide a Platform providers should look in the
In camel-osgi we provide OSGi aware class resolver allowing Camel to run in any OSGi container. Configuration of a custom class resolverTo instruct Camel to use your own custom class resolver you set the resolver on the Easy configuration in Spring XMLWe have provided easy configuration in Spring XML as you just need to declare a spring bean with your custom resolver and Camel will pick it up automatically. <bean id="jbossresolver" class="com.mycompany.jboss.JBossPackageScanClassResolver"/> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="seda:start"/> <to uri="mock:result"/> </route> </camelContext> In the sample above the CamelContext will automatic detect the FactoryFinderResolverFactoryFinderResolver is used to get an instance of Easy configuration in Spring XMLWe have provided easy configuration in Spring XML as you just need to declare a spring bean with your custom factory finder resolver and Camel will pick it up automatically. <bean id="jbossFactoryFinderResolver" class="com.mycompany.jboss.JBossFactoryFinderResolver"/> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="seda:start"/> <to uri="mock:result"/> </route> </camelContext> Using Camel with JBossSee more at camel-jboss for a class resolver which works with JBoss and how to use it. Using Camel with Eclipse RCPSee more at camel-eclipse for a class resolver which works with Eclipse RCP and how to use it. |