|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent<PojoExchange>
org.apache.camel.component.pojo.PojoComponent
public class PojoComponent
Represents the component that manages PojoEndpoint. It holds the
list of named pojos that queue endpoints reference.
| Field Summary | |
|---|---|
protected HashMap<String,Object> |
services
|
| Constructor Summary | |
|---|---|
PojoComponent()
|
|
| Method Summary | ||
|---|---|---|
void |
addService(String uri,
Object pojo)
|
|
protected Endpoint<PojoExchange> |
createEndpoint(String uri,
String remaining,
Map parameters)
A factory method allowing derived components to create a new endpoint from the given URI, remaining path and optional parameters |
|
static Object |
createProxy(Endpoint endpoint,
Class[] interfaces)
Creates a Proxy which sends PojoExchange to the endpoint. |
|
static
|
createProxy(Endpoint endpoint,
Class<T> interfaceClass)
Creates a Proxy which sends PojoExchange to the endpoint. |
|
static Object |
createProxy(Endpoint endpoint,
ClassLoader cl,
Class[] interfaces)
Creates a Proxy which sends PojoExchange to the endpoint. |
|
static
|
createProxy(Endpoint endpoint,
ClassLoader cl,
Class<T> interfaceClass)
Creates a Proxy which sends PojoExchange to the endpoint. |
|
Object |
getService(String uri)
|
|
void |
removeService(String uri)
|
|
| Methods inherited from class org.apache.camel.impl.DefaultComponent |
|---|
createEndpoint, createExecutorService, doStart, doStop, getCamelContext, getExecutorService, setCamelContext, setExecutorService |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
isStarted, isStopped, isStopping, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HashMap<String,Object> services
| Constructor Detail |
|---|
public PojoComponent()
| Method Detail |
|---|
public void addService(String uri,
Object pojo)
public void removeService(String uri)
public Object getService(String uri)
protected Endpoint<PojoExchange> createEndpoint(String uri,
String remaining,
Map parameters)
throws Exception
DefaultComponent
createEndpoint in class DefaultComponent<PojoExchange>uri - the full URI of the endpointremaining - the remaining part of the URI without the query parameters or component prefixparameters - the optional parameters passed in
Exception
public static Object createProxy(Endpoint endpoint,
ClassLoader cl,
Class[] interfaces)
throws Exception
Exception
public static Object createProxy(Endpoint endpoint,
Class[] interfaces)
throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint,
ClassLoader cl,
Class<T> interfaceClass)
throws Exception
Exception
public static <T> T createProxy(Endpoint endpoint,
Class<T> interfaceClass)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||