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:
{code} <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> <alternatives> <stereotype>org.picketlink.annotations.StatelessIdentity</stereotype> </alternatives> </beans> {code}
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.
Users don't need to provide a qualifier to inject the stateless version of the Identity. The Identity.Stateless annotation was removed.
|