Created
March 22, 2012 12:45
-
-
Save artem-sh/2158117 to your computer and use it in GitHub Desktop.
The ony Java bean in project 'jsf2-cdi-jetty-maven'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sh.app.sample_projects.jsf2_cdi_jetty_maven; | |
import javax.inject.Named; | |
import javax.annotation.PostConstruct; | |
import javax.enterprise.context.SessionScoped; | |
import java.io.Serializable; | |
@Named | |
@SessionScoped | |
public class Visitor implements Serializable { | |
private String name; | |
@PostConstruct | |
public void init() { | |
name = "Ivan"; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment