Class AnnotationGreetingFormatter

java.lang.Object
org.j7m.middleware.examples.annotation.AnnotationGreetingFormatter

@J7mComponent(name="formal") @Named("formal") public final class AnnotationGreetingFormatter extends Object
Named formatter capability injected into the simple annotation-first service.

The component demonstrates qualifier-based application dependency injection. It owns no runtime resources and is thread-safe because all state is immutable.

  • Constructor Details

    • AnnotationGreetingFormatter

      public AnnotationGreetingFormatter(String style)
      Creates a formatter.
      Parameters:
      style - public formatting style
  • Method Details

    • format

      public String format(String region, String name)
      Formats a greeting.
      Parameters:
      region - configured region
      name - caller supplied name
      Returns:
      formatted greeting