feat: Add Service Stub Pattern using Sentiment Analysis example (#3215)

* Add Service Stub Pattern using Sentiment Analysis example

* Fix Checkstyle issues

* Suppress Sonar warning for Random usage in RealSentimentAnalysisServer
This commit is contained in:
John Klint
2025-03-23 06:37:35 +01:00
committed by GitHub
parent abfb137040
commit adf5b62753
10 changed files with 377 additions and 0 deletions
@@ -0,0 +1,15 @@
package com.iluwatar.servicestub;
/**
* Sentiment analysis server interface to be implemented by sentiment analysis services.
*/
public interface SentimentAnalysisServer {
/**
* Analyzes the sentiment of the input text and returns the result.
*
* @param text the input text to analyze
* @return sentiment classification result
*/
String analyzeSentiment(String text);
}