[
https://issues.apache.org/jira/browse/ARIES-914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554264#comment-14554264
]
ASF GitHub Bot commented on ARIES-914:
--------------------------------------
GitHub user acartapanis opened a pull request:
https://github.com/apache/aries/pull/22
Correction for bug ARIES-914, probably not the good way to do …
Please see my comment on JIRA for ARIES-914.
I'm not sure this is the good way to solve this bug.
For an xml file :
`<bean
id="totoEmbeddedServer"
class="toto.EmbeddedServer"
scope="singleton"
init-method="init"
destroy-method="destroy">
<cm:managed-properties persistent-id="toto"
update-strategy="component-managed" update-method="configure"/>
</bean>`
I expect the "configure(Map)" method to be called at startup, as it is done
for a container managed property.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/acartapanis/aries trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/aries/pull/22.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 #22
----
commit 4675df147932b97bf1efdb80e659475697150ecc
Author: acartapanis <abxt866nrg4@github>
Date: 2015-05-21T13:10:52Z
digusting correction for bug ARIES-914, probably not the good way to do
this...
----
> When using component-managed mode for managed-properties the first time
> 'container-managed' mode is used
> --------------------------------------------------------------------------------------------------------
>
> Key: ARIES-914
> URL: https://issues.apache.org/jira/browse/ARIES-914
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Affects Versions: 0.2, 0.3, 1.0
> Reporter: Christoph Läubrich
>
> When using the 'managed-properties' in Blueprint with 'component-managed'
> mode, the first time the component start up the blueprint module tries to
> inject properties with the 'container-managed' mode.
> The cause of this seems that in the method 'private void inject(Object bean,
> boolean initial)' because if initial is true it always enter the
> 'container-managed' mode. Should it be an && (logical and) instead of an ||
> (logical or) there?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)