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 int
compareTo
(CamelContextCustomizer other) void
configure
(CamelContext camelContext) Configure theCamelContext
.default int
getOrder()
Gets the order.
-
Method Details
-
configure
Configure theCamelContext
.- Parameters:
camelContext
- the camel context to configure.
-
getOrder
default int getOrder()Description copied from interface:Ordered
Gets 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_VALUE
or egOrdered.LOWEST
. -
compareTo
- Specified by:
compareTo
in interfaceComparable<CamelContextCustomizer>
-