camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Camel design question
Date Tue, 22 May 2012 16:23:05 GMT
Hi,

Is it a better Camel design to use connect() / disconnect() method of the
endpoint to call the component ?


public class CometdEndpoint extends DefaultEndpoint {

...

    public void connect(CometdProducerConsumer prodcons) throws Exception {

        component.connect(prodcons);

    }


    public void disconnect(CometdProducerConsumer prodcons) throws
Exception {

        component.disconnect(prodcons);

    }



Regards,
Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message