You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Brad Maxwell (JIRA)" <ji...@apache.org> on 2015/12/02 17:30:11 UTC

[jira] [Commented] (SANTUARIO-157) Allow to pass a custom config.xml resource path via Init.init() method

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

Brad Maxwell commented on SANTUARIO-157:
----------------------------------------

I would add a method that takes an InputStream which then could be a file or a resource from the classloader such as:
public static synchronized void init(InputStream is)

And make it work similar to JAXP where it goes in order of priority:
- check the system property 
- check the InputStream passed in
- fall back to dynamically registering the defaults

In a JavaEE container there are multiple classloaders, so different applications could include their own santurio and the configuration would be separate, but currently the only option is to use the dynamic init which registers all the defaults or use a system wide property which would change the config for all applications with santurio.

> Allow to pass a custom config.xml resource path via Init.init() method
> ----------------------------------------------------------------------
>
>                 Key: SANTUARIO-157
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-157
>             Project: Santuario
>          Issue Type: Bug
>      Security Level: Public(Public issues, viewable by everyone) 
>          Components: Java
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Marc Giger
>         Attachments: ASF.LICENSE.NOT.GRANTED--xml-security.patch
>
>
> If xmlsec is used in an container env, every webapp can now use its own config and
> and dont rely on the global one.
> Attached is a patch which is tested against xmlsec trunk.
> Feel free to include/modify/extend/decline the attached patch



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