org.apache.camel.component.pojo
Class PojoConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer<PojoExchange>
          extended by org.apache.camel.component.pojo.PojoConsumer
All Implemented Interfaces:
InvocationHandler, Consumer<PojoExchange>, Service

public class PojoConsumer
extends DefaultConsumer<PojoExchange>
implements InvocationHandler

Version:
$Revision: 525547 $

Constructor Summary
PojoConsumer(PojoEndpoint endpoint, Processor<PojoExchange> processor)
           
 
Method Summary
 Object createProxy(Class[] interfaces)
          Creates a Proxy which generates inbound exchanges on the consumer.
<T> T
createProxy(Class<T> interfaceClass)
          Creates a Proxy which generates inbound exchanges on the consumer.
 Object createProxy(ClassLoader cl, Class[] interfaces)
          Creates a Proxy which generates inbound exchanges on the consumer.
<T> T
createProxy(ClassLoader cl, Class<T> interfaceClass)
          Creates a Proxy which generates inbound exchanges on the consumer.
protected  void doStart()
           
protected  void doStop()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler
 
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
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

PojoConsumer

public PojoConsumer(PojoEndpoint endpoint,
                    Processor<PojoExchange> processor)
Method Detail

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class DefaultConsumer<PojoExchange>
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class DefaultConsumer<PojoExchange>
Throws:
Exception

createProxy

public Object createProxy(ClassLoader cl,
                          Class[] interfaces)
Creates a Proxy which generates inbound exchanges on the consumer.


createProxy

public Object createProxy(Class[] interfaces)
Creates a Proxy which generates inbound exchanges on the consumer.


createProxy

public <T> T createProxy(ClassLoader cl,
                         Class<T> interfaceClass)
Creates a Proxy which generates inbound exchanges on the consumer.


createProxy

public <T> T createProxy(Class<T> interfaceClass)
Creates a Proxy which generates inbound exchanges on the consumer.


invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2007 Apache Software Foundation. All Rights Reserved.