Class NoOpUserProvider

java.lang.Object
org.togglz.core.user.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 Details

    • NoOpUserProvider

      public NoOpUserProvider()
  • Method Details

    • 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