You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dominik Przybysz (JIRA)" <ji...@apache.org> on 2018/05/22 16:20:00 UTC
[jira] [Commented] (ARIES-1802) ConfigProperties does not produce
xml
[ https://issues.apache.org/jira/browse/ARIES-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16484229#comment-16484229 ]
Dominik Przybysz commented on ARIES-1802:
-----------------------------------------
[~sekaijin] `managed-properties` are currently not supported in BMP. If you want to add this feature, you can write your own annotation and add it to BMP using provided SPI (http://aries.apache.org/modules/blueprint-maven-plugin.html#spi)
> ConfigProperties does not produce xml
> -------------------------------------
>
> Key: ARIES-1802
> URL: https://issues.apache.org/jira/browse/ARIES-1802
> Project: Aries
> Issue Type: Test
> Environment: Java 8
> {code:java}
> <groupId>org.apache.aries.blueprint</groupId>
> <artifactId>blueprint-maven-plugin</artifactId>
> <version>1.10.0</version>
> <executions>
> <execution>
> <goals>
> <goal>blueprint-generate</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <scanPaths>
> <scanPath>${scanPath}</scanPath>
> </scanPaths>
> </configuration>
> {code}
> Reporter: Terrien Jean-Yves
> Priority: Major
>
> I've this annotation in my class
> {code:java}
> @ConfigProperties(
> pid="my.system",
> update=true
> )
> public void update (Map<String, String> map) throws Exception {{code}
> but only services injection is producted
> {code:java}
> <bean xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" id="environnement"
> class="fr.aphp.olympe.hermes.services.environnement.impl.EnvironmentImpl"
> ext:field-injection="true" init-method="activate" destroy-method="destroy">
> <property name="blueprintBundleContext" ref="bundleContext"/>
> <property name="transactionManager" ref="transactionManager"/>
> </bean>{code}
> I would like to reproduce
> {code:java}
> <bean id="environnement"
> class="fr.aphp.olympe.hermes.services.environnement.impl.EnvironmentImpl"
> init-method="activate" destroy-method="destroy">
> <cm:managed-properties update-strategy="component-managed"
> persistent-id="my.system" update-method="update" />
> <property name="bundleContext" ref="blueprintBundleContext" />
> <property name="transactionManager" ref="transactionManager" />
> </bean>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)