This PR
https://github.com/picketlink/picketlink/pull/295
Replaces the previous solution to support stateless Identity instances. PicketLink now provides a @StatelessIdentity stereotype that should be configured in beans.xml as follows:
<beans xmlns="http:
xmlns:xsi="http:
xsi:schemaLocation="http:>
<alternatives>
<stereotype>org.picketlink.annotations.StatelessIdentity</stereotype>
</alternatives>
</beans>
CDI 1.0 has some limitations regarding the use of stereotypes in multi-module projects. To overcome that, was created a StatelessIdentityExtension that disables the default Identity implementation (stateful) and enable the stateless one based on the configuration provided by the application.
CDI 1.1 already provides support for that.
|