Package org.apache.camel.spi
Interface CamelContextCustomizer
- All Superinterfaces:
Comparable<CamelContextCustomizer>,Ordered
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface CamelContextCustomizer
extends Ordered, Comparable<CamelContextCustomizer>
To apply custom configurations to
CamelContext instances.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcompareTo(CamelContextCustomizer other) voidconfigure(CamelContext camelContext) Configure theCamelContext.default intgetOrder()Gets the order.
-
Method Details
-
configure
Configure theCamelContext.- Parameters:
camelContext- the camel context to configure.
-
getOrder
default int getOrder()Description copied from interface:OrderedGets the order. Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards. So if you want to be last then useInteger.MAX_VALUEor egOrdered.LOWEST. -
compareTo
- Specified by:
compareToin interfaceComparable<CamelContextCustomizer>
-