aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIES-1138) Disable Blueprint Schema Validation via System Property
Date Wed, 31 Jan 2018 09:18:00 GMT

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

Guillaume Nodet resolved ARIES-1138.
------------------------------------
       Resolution: Fixed
    Fix Version/s: blueprint-core-1.9.0

Committing to https://svn.apache.org/repos/asf/aries/trunk ...
	M	blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintExtender.java
	M	blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/BlueprintConstants.java
Committed r1822779


> Disable Blueprint Schema Validation via System Property
> -------------------------------------------------------
>
>                 Key: ARIES-1138
>                 URL: https://issues.apache.org/jira/browse/ARIES-1138
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>    Affects Versions: blueprint-core-1.2.0
>            Reporter: Michael Hirsch
>            Priority: Minor
>             Fix For: blueprint-core-1.9.0
>
>
> The aries blueprint code allows that the schema validation can be disabled by adding
a bundle-symbolic-name directive _blueprint.aries.xml-validation:=false_ 
> Unfortunately this must be done for each bundle which contains a blueprint descriptor,
inclusive the aries blueprint jar which also contains an blueprint-descriptor.
> It would be nice to disable the schema validation globally of all bundles deployed in
the OSGi container because of performance impacts of validating XSDs on a embedded device.
Validating XSDs is quiet expensive and not necessary e.g. for production code.
> Blueprint Code which already checks the directive (BlueprintContainerImpl)
> {code}
> String xmlValidationDirective = ((HeaderParser.PathElement)paths.get(0)).getDirective("blueprint.aries.xml-validation");
>     if (xmlValidationDirective != null) {
>       LOGGER.debug("Xml-validation directive: {}", xmlValidationDirective);
>       this.xmlValidation = Boolean.parseBoolean(xmlValidationDirective);
>     }
> {code}
> Cheers,
> Micha



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message