|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint<PojoExchange>
org.apache.camel.component.pojo.PojoEndpoint
public class PojoEndpoint
Represents a pojo endpoint that uses reflection to send messages around.
Constructor Summary | |
---|---|
PojoEndpoint(String uri,
Component component,
Object pojo)
|
Method Summary | |
---|---|
Consumer<PojoExchange> |
createConsumer(Processor processor)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
PojoExchange |
createExchange()
Create a new exchange for communicating with this endpoint |
Producer<PojoExchange> |
createProducer()
Creates a new producer which is used send messages into the endpoint |
Object |
getPojo()
|
static void |
invoke(Object pojo,
PojoExchange exchange)
This causes us to invoke the endpoint Pojo using reflection. |
boolean |
isSingleton()
Returns if the endpoint should be a CamelContext singleton. |
void |
setPojo(Object pojo)
|
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PojoEndpoint(String uri, Component component, Object pojo)
Method Detail |
---|
public Producer<PojoExchange> createProducer() throws Exception
Endpoint
Exception
public Consumer<PojoExchange> createConsumer(Processor processor) throws Exception
Endpoint
Exception
public static void invoke(Object pojo, PojoExchange exchange)
pojo
- public PojoExchange createExchange()
Endpoint
public boolean isSingleton()
Endpoint
public Object getPojo()
public void setPojo(Object pojo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |