@ApplicationScoped public class GreetingServiceBean extends Object implements GreetingService
GreetingService
implemented as an injectableConstructor and Description |
---|
GreetingServiceBean() |
Modifier and Type | Method and Description |
---|---|
String |
generateGreeting(UserPrincipal principal)
Generates a personalized greeting.
|
public String generateGreeting(UserPrincipal principal)
GreetingService
generateGreeting
in interface GreetingService
principal
- user principalCopyright © 2014–2019. All rights reserved.