2 Replies Latest reply on Jun 8, 2010 2:17 PM by Michal Petrik

    Extending IdentityManager and IdentityStore

    Michal Petrik Newbie

      I have problem extending resp. overriding default IdentityManager. I know that there are similar topics in this forum, but I did not find satisfying explanation.

      When I just try to override default IdentityManager using the @Name annotation like this

      @Install(precedence = APPLICATION)
      public class IdentityManager extends
                org.jboss.seam.security.management.IdentityManager implements Serializable{
           private static final long serialVersionUID = 5693723706540138359L;

      and in component.xml like this:

      <security:identity-manager identity-store="#{identityStore}" name="identityManager"/>

      and try to inject it using @In annotation, the default implementation is injected.

      @In IdentityManager identityManager;

      When I set the class attribute to the name of my implementation class, the injection of my class works ok, but defined IdentityStore is not set.

      I have also similar problems with extending identity stores in this way.

      Can anyone provide me some guide how to correctly set components.xml and component annotations when I want to use own identity manager and identity store implementation extending the default implementation?

      Thanks! ;-)