]
Jozef Hartinger resolved WFLY-2689.
-----------------------------------
Fix Version/s: 8.0.0.Final
Resolution: Done
I believe this was resolved for 8.0.0.Final. Feel free to reopen if I am wrong.
@Producer method never called when producing a bean from a static
module
------------------------------------------------------------------------
Key: WFLY-2689
URL:
https://issues.jboss.org/browse/WFLY-2689
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: CDI / Weld
Affects Versions: 8.0.0.CR1
Environment: WildFly 8.0.0.CR1
Reporter: Pedro Igor
Assignee: Jozef Hartinger
Fix For: 8.0.0.Final
I've configured a static module for PicketLink CDI library. This library provides
some extensions which are loaded fine, as described by WFLY-1370.
However, I'm trying to deploy my application which the following producer method:
{code}
@Produces
@PicketLink
public PartitionManager getPartitionManager() {
// produce an instance
}
{code}
Where the @PicketLink annotation is a qualifier that allows my deployment to provide its
own instance instead.
In the PicketLink side, we have a injection point as follows:
@Inject
@PicketLink
private Instance<PartitionManager> partitionManagerInstance;
Where a call to partitionManagerInstance.isUnsatisfied() always returns true, even if my
deployment provides a proper producer method.
The issue here is that the producer method is never called, despite the use of qualifiers
or not.
FYI, I'm able to listen for events fired by PicketLink during the application startup
as follows:
public void observeIdentityConfigurationEvent(@Observes IdentityConfigurationEvent event)
{
// observer
}
Where IdentityConfigurationEvent is one of the lifecycle events fired by PicketLink
during the startup.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: