本文整理汇总了Java中org.apache.camel.impl.ProcessorEndpoint类的典型用法代码示例。如果您正苦于以下问题:Java ProcessorEndpoint类的具体用法?Java ProcessorEndpoint怎么用?Java ProcessorEndpoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProcessorEndpoint类属于org.apache.camel.impl包,在下文中一共展示了ProcessorEndpoint类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setUp
import org.apache.camel.impl.ProcessorEndpoint; //导入依赖的package包/类
public void setUp() throws Exception {
JndiRegistry registry = new JndiRegistry(new JndiContext());
RouteBuilder builder = createRouteBuilder();
CamelContext context = new DefaultCamelContext(registry);
testConverter = new TestConverter();
testTransformerFactory = TransformerFactory.newInstance();
registry.bind("testConverter", testConverter);
registry.bind("testTransformerFactory", testTransformerFactory);
ProcessorEndpoint pep1 = context.getEndpoint(TEST_URI_1, ProcessorEndpoint.class);
context.addRoutes(builder);
context.start();
builder1 = (XsltBuilder)pep1.getProcessor();
}
开发者ID:HydAu,项目名称:Camel,代码行数:19,代码来源:XsltReferenceParameterTest.java
示例2: convertBeanToEndpoint
import org.apache.camel.impl.ProcessorEndpoint; //导入依赖的package包/类
protected Endpoint convertBeanToEndpoint(String uri, Object bean) {
// We will use the type convert to build the endpoint first
Endpoint endpoint = getTypeConverter().convertTo(Endpoint.class, bean);
if (endpoint != null) {
endpoint.setCamelContext(this);
return endpoint;
}
return new ProcessorEndpoint(uri, this, new BeanProcessor(bean, this));
}
开发者ID:HydAu,项目名称:Camel,代码行数:11,代码来源:SpringCamelContext.java
示例3: createEndpoint
import org.apache.camel.impl.ProcessorEndpoint; //导入依赖的package包/类
@Override
protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
return new ProcessorEndpoint(uri, this, new ParityProcessor());
}
开发者ID:mgyongyosi,项目名称:camel-cookbook,代码行数:5,代码来源:ParityComponent.java
注:本文中的org.apache.camel.impl.ProcessorEndpoint类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论