com.screamingcoder.plebeians.example.simple
Class HelloWorld

java.lang.Object
  extended by com.screamingcoder.plebeians.example.simple.HelloWorld

public class HelloWorld
extends java.lang.Object

The "main" class of this app. Because it is annotated with @Main, this class will be instanciated automatically by the Plebeians StartMain class. As per the Web Beans spec the @Initializer method will then be called, which will print a hello message using the injected firstName.


Constructor Summary
HelloWorld()
           
 
Method Summary
 void printHello(java.lang.String firstName)
          Prints a hello message using the given first name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorld

public HelloWorld()
Method Detail

printHello

@Initializer
public void printHello(@Current
                                   java.lang.String firstName)
Prints a hello message using the given first name.

Parameters:
firstName - The first name.