...
Warning |
---|
Use caution when specifying the package name as |
Warning | package is @deprecated | package is @deprecated |
The <package> tag has been @deprecated and replaced with the more powerful <packageScan> tag. See below. |
Using <packageScan>
Using <packageScan>
In Camel 2.0 In 2.X this has been extended to allow selective inclusion and exclusion of discovered route classes using Ant like path matching. In spring this is specified by adding a <packageScan/> tag. The tag must contain one or more 'package' elements (similar to 1.x), and optionally one or more 'includes' or 'excludes' elements specifying patterns to be applied to the fully qualified names of the discovered classes. e.g.
...
Under the covers, this is using Spring's AntPatternMatcher implementation, which matches as follows
...