use of org.apache.camel.management.mbean.ManagedSuspendableRoute in project camel by apache.
the class DefaultManagementObjectStrategy method getManagedObjectForRoute.
public Object getManagedObjectForRoute(CamelContext context, Route route) {
ManagedRoute mr;
if (route.supportsSuspension()) {
mr = new ManagedSuspendableRoute((ModelCamelContext) context, route);
} else {
mr = new ManagedRoute((ModelCamelContext) context, route);
}
mr.init(context.getManagementStrategy());
return mr;
}
Aggregations