Package org.togglz.core.user
Class NoOpUserProvider
- java.lang.Object
-
- org.togglz.core.user.NoOpUserProvider
-
- All Implemented Interfaces:
UserProvider
public class NoOpUserProvider extends Object implements UserProvider
This implementation ofUserProvidercan be used if user-dependent feature toggling isn't used at all.- Author:
- Christian Kaltepoth
-
-
Constructor Summary
Constructors Constructor Description NoOpUserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureUsergetCurrentUser()Return aFeatureUserinstance representing the current user.
-
-
-
Method Detail
-
getCurrentUser
public FeatureUser getCurrentUser()
Description copied from interface:UserProviderReturn aFeatureUserinstance representing the current user. This method should returnnullif the implementation is unable to determine the user.- Specified by:
getCurrentUserin interfaceUserProvider- Returns:
- current user or
null
-
-