[ 
https://issues.apache.org/jira/browse/CAMEL-9320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15003896#comment-15003896
 ] 

ASF GitHub Bot commented on CAMEL-9320:
---------------------------------------

GitHub user tdiesler opened a pull request:

    https://github.com/apache/camel/pull/677

    [CAMEL-9320] Cannot set XStream permissions on a per CamelContext basis

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tdiesler/camel CAMEL-9320

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/677.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #677
    
----
commit 57f94f4c0a80e16f7d765289d91c7a309afb2b86
Author: Thomas Diesler <thomas.dies...@jboss.com>
Date:   2015-11-13T11:53:14Z

    [CAMEL-9320] Cannot set XStream permissions on a per CamelContext basis

----


> Cannot set XStream permissions on a per CamelContext basis
> ----------------------------------------------------------
>
>                 Key: CAMEL-9320
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9320
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Thomas Diesler
>             Fix For: 2.16.1
>
>
> One would expect to set xstream permissions on the DataFormat associated with 
> a given CamelContext like this
> {code}
>         XStreamDataFormat dataFormat = (XStreamDataFormat) 
> camelctx.resolveDataFormat("xstream");
>         dataFormat.setPermissions("+" + Customer.class.getName());
> {code}  
> This approach fails however because the DefaultDataFormatResolver does not 
> cache the DataFormat instances it creates 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to