You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2014/05/13 08:56:14 UTC

[jira] [Resolved] (CAMEL-7435) Create a generic callback to configure the APNS service builder

     [ https://issues.apache.org/jira/browse/CAMEL-7435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henryk Konsek resolved CAMEL-7435.
----------------------------------

    Resolution: Fixed

Fixed in ca3e8a0a62fd93f30ab2fa1bbb2190a14ce53f8e.

> Create a generic callback to configure the APNS service builder
> ---------------------------------------------------------------
>
>                 Key: CAMEL-7435
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7435
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-apns
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.14.0
>
>
> We should add an empty callback method to {{ApnsServiceFactory}} that could be used to configure (or even replace) the default {{ApnsServiceBuilder}} instance.
> Signature of the method could look as follows: 
> {code}
> protected ApnsServiceBuilder configureServiceBuilder(ApnsServiceBuilder serviceBuilder)
> {code}
> And could be used like:
> {code}
> ApnsServiceFactory proxiedApnsServiceFactory = new ApnsServiceFactory(){
>     @Override
>     protected ApnsServiceBuilder configureServiceBuilder(ApnsServiceBuilder serviceBuilder) {
>         return serviceBuilder.withSocksProxy("my.proxy.com", 6666);
>     }
> };
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)