Search in sources :

Example 1 with CamelPostProcessorHelper

use of org.apache.camel.impl.CamelPostProcessorHelper in project camel by apache.

the class CdiCamelBeanPostProcessor method getPostProcessorHelper.

private CamelPostProcessorHelper getPostProcessorHelper(String contextName) {
    CamelPostProcessorHelper helper = postProcessorHelpers.get(contextName);
    if (helper == null) {
        CamelContext context = getOrLookupCamelContext(contextName);
        if (context == null) {
            throw new UnsatisfiedResolutionException("No Camel context with name [" + contextName + "] is deployed!");
        }
        helper = new CamelPostProcessorHelper(context);
        postProcessorHelpers.put(contextName, helper);
    }
    return helper;
}
Also used : CamelContext(org.apache.camel.CamelContext) CamelPostProcessorHelper(org.apache.camel.impl.CamelPostProcessorHelper) UnsatisfiedResolutionException(javax.enterprise.inject.UnsatisfiedResolutionException)

Aggregations

UnsatisfiedResolutionException (javax.enterprise.inject.UnsatisfiedResolutionException)1 CamelContext (org.apache.camel.CamelContext)1 CamelPostProcessorHelper (org.apache.camel.impl.CamelPostProcessorHelper)1