#354 finished method javadocs
This commit is contained in:
@ -2,11 +2,31 @@ package com.iluwatar.featuretoggle.pattern;
|
||||
|
||||
import com.iluwatar.featuretoggle.user.User;
|
||||
|
||||
|
||||
/**
|
||||
* Simple interfaces to allow the calling of the method to generate the welcome message for a given user. While there is
|
||||
* a helper method to gather the the status of the feature toggle. In some cases there is no need for the
|
||||
* {@link Service#isEnhanced()} in {@link com.iluwatar.featuretoggle.pattern.tieredversion.TieredFeatureToggleVersion}
|
||||
* where the toggle is determined by the actual {@link User}.
|
||||
*
|
||||
* @see com.iluwatar.featuretoggle.pattern.propertiesversion.PropertiesFeatureToggleVersion
|
||||
* @see com.iluwatar.featuretoggle.pattern.tieredversion.TieredFeatureToggleVersion
|
||||
* @see User
|
||||
*/
|
||||
public interface Service {
|
||||
|
||||
/**
|
||||
* Generates a welcome message for the passed user.
|
||||
*
|
||||
* @param user the {@link User} to be used if the message is to be personalised.
|
||||
* @return Generated {@link String} welcome message
|
||||
*/
|
||||
String getWelcomeMessage(User user);
|
||||
|
||||
/**
|
||||
* Returns if the welcome message to be displayed will be the enhanced version.
|
||||
*
|
||||
* @return Boolean {@value true} if enhanced.
|
||||
*/
|
||||
boolean isEnhanced();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user