Class OAuthUserProvider

  • All Implemented Interfaces:
    Provider<OAuthUser>

    public class OAuthUserProvider
    extends AbstractProvider<OAuthUser>
    OAuth user provider is to use to inject secondary users in addition to one which is provided by the framework, that is the primary one.

    Author:
    Erhan Bagdemir
    • Method Detail

      • take

        public OAuthUser take()
        Description copied from interface: Provider
        Instance to be fed into injection point.

        Returns:
        Instance to be injected.
      • take

        public OAuthUser take​(User excludedUser)
        Take a user from the repository excluding the one passed as parameter till the repository provides one. If after three attempts not succeeds, then IllegalArgumentException will be thrown.

        Parameters:
        excludedUser - User instance.
        Returns:
        OAuthUser instance different than the user provided.