Java 类org.apache.camel.model.InterceptFromDefinition 实例源码

项目:Camel    文件:RouteBuilder.java   
/**
 * Adds a route for an interceptor that intercepts incoming messages on any inputs in this route
 *
 * @return the builder
 */
public InterceptFromDefinition interceptFrom() {
    if (!getRouteCollection().getRoutes().isEmpty()) {
        throw new IllegalArgumentException("interceptFrom must be defined before any routes in the RouteBuilder");
    }
    getRouteCollection().setCamelContext(getContext());
    return getRouteCollection().interceptFrom();
}
项目:Camel    文件:RouteBuilder.java   
/**
 * Adds a route for an interceptor that intercepts incoming messages on the given endpoint.
 *
 * @param uri  endpoint uri
 * @return the builder
 */
public InterceptFromDefinition interceptFrom(String uri) {
    if (!getRouteCollection().getRoutes().isEmpty()) {
        throw new IllegalArgumentException("interceptFrom must be defined before any routes in the RouteBuilder");
    }
    getRouteCollection().setCamelContext(getContext());
    return getRouteCollection().interceptFrom(uri);
}
项目:Camel    文件:CamelContextFactoryBean.java   
public List<InterceptFromDefinition> getInterceptFroms() {
    return interceptFroms;
}
项目:Camel    文件:CamelContextFactoryBean.java   
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms) {
    this.interceptFroms = interceptFroms;
}
项目:Camel    文件:CamelContextFactoryBean.java   
public List<InterceptFromDefinition> getInterceptFroms() {
    return interceptFroms;
}
项目:Camel    文件:CamelContextFactoryBean.java   
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms) {
    this.interceptFroms = interceptFroms;
}
项目:Camel    文件:CamelContextFactoryBean.java   
public List<InterceptFromDefinition> getInterceptFroms() {
    return interceptFroms;
}
项目:Camel    文件:CamelContextFactoryBean.java   
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms) {
    this.interceptFroms = interceptFroms;
}
项目:switchyard    文件:CamelContextFactoryBeanDelegate.java   
@Override
public List<InterceptFromDefinition> getInterceptFroms() {
    return _factoryBean.getInterceptFroms();
}
项目:camel-cdi    文件:CamelContextFactoryBean.java   
public List<InterceptFromDefinition> getInterceptFroms() {
    return interceptFroms;
}
项目:camel-cdi    文件:CamelContextFactoryBean.java   
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms) {
    this.interceptFroms = interceptFroms;
}
项目:Camel    文件:AbstractCamelContextFactoryBean.java   
public abstract List<InterceptFromDefinition> getInterceptFroms();