Interface HelloWorldPlugin


public interface HelloWorldPlugin
A plugin of Hello World Service. The service finds its plugins with a ServiceLoader of this interface and answers for each one at /plugins/<id>; its application.yaml names this interface in plugins, so that SmartGears finds, describes and publishes them too.
Author:
Luca Frosini (ISTI-CNR)
  • Method Summary

    Modifier and Type
    Method
    Description
    Greets someone.
    id()
    Returns the identifier of the plugin, its segment in the path of the service.
  • Method Details

    • id

      String id()
      Returns the identifier of the plugin, its segment in the path of the service.
      Returns:
      the identifier, e.g. greeter
    • greet

      String greet(String who)
      Greets someone.
      Parameters:
      who - whom to greet
      Returns:
      the greeting