Class NoOpUserProvider

  • All Implemented Interfaces:
    UserProvider

    public class NoOpUserProvider
    extends Object
    implements UserProvider
    This implementation of UserProvider can be used if user-dependent feature toggling isn't used at all.
    Author:
    Christian Kaltepoth
    • Constructor Detail

      • NoOpUserProvider

        public NoOpUserProvider()
    • Method Detail

      • getCurrentUser

        public FeatureUser getCurrentUser()
        Description copied from interface: UserProvider
        Return a FeatureUser instance representing the current user. This method should return null if the implementation is unable to determine the user.
        Specified by:
        getCurrentUser in interface UserProvider
        Returns:
        current user or null