aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1290) Reflect cm.CmPropertyPlaceholder -> ext.PropertyPlaceholder relationship in XSD
Date Thu, 29 Jan 2015 10:03:34 GMT

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

Grzegorz Grzybek commented on ARIES-1290:
-----------------------------------------

I checked that the schema locations are correctly fetched using relevant bundles.
I mean, if we have:
{code:xml}
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.3.0"
        xmlns:ext12="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.2.0"
        xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

    <cm:property-placeholder persistent-id="my-pid" placeholder-prefix="[[" placeholder-suffix="]]"
ext12:ignore-missing-locations="false" ext12:system-properties="fallback">
        <cm:default-properties>
            <!-- These properties will be replaced at build time by Maven  -->
            <cm:property name="jdbc.url" value="${jdbc.postgresql.url}" />
            <cm:property name="jdbc.user" value="${jdbc.postgresql.user}" />
            <cm:property name="jdbc.password" value="${jdbc.postgresql.password}" />
        </cm:default-properties>
        <ext12:location>a</ext12:location>
    </cm:property-placeholder>

</blueprint>
{code}
then [this code|https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/namespace/NamespaceHandlerRegistryImpl.java#L319]
uses correct bundle class loader (of blueprint-cm bundle for cm: and blueprint-core for ext:)
to fetch the resources.

> Reflect cm.CmPropertyPlaceholder -> ext.PropertyPlaceholder relationship in XSD
> -------------------------------------------------------------------------------
>
>                 Key: ARIES-1290
>                 URL: https://issues.apache.org/jira/browse/ARIES-1290
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-cm-1.0.4
>            Reporter: Grzegorz Grzybek
>
> Because {{org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder}} directly extends
{{org.apache.aries.blueprint.ext.PropertyPlaceholder}} and relevant namespace handler looks
for {{ext}} namespace elements/attributes in {{cm}} version of the placeholder, XSDs should
reflect this fact.



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

Mime
View raw message