FileDocCategorySizeDatePackage
PersonManager.javaAPI DocApache Struts 2.0.9 Apps1922Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.person

PersonManager

public class PersonManager extends Object

Fields Summary
private static Set
people
private static long
COUNT
Constructors Summary
Methods Summary
public voidcreatePerson(Person person)


     
        // create some imaginary persons
        Person p1 = new Person(new Long(1), "Patrick", "Lightbuddie");
        Person p2 = new Person(new Long(2), "Jason", "Carrora");
        Person p3 = new Person(new Long(3), "Alexandru", "Papesco");
        Person p4 = new Person(new Long(4), "Jay", "Boss");
        Person p5 = new Person(new Long(5), "Rainer", "Hermanos");
        people.add(p1);
        people.add(p2);
        people.add(p3);
        people.add(p4);
        people.add(p5);
    
        person.setId(new Long(++COUNT));
        people.add(person);
    
public java.util.SetgetPeople()

        return people;
    
public voidupdatePerson(Person person)

        people.add(person);