Package appointment.business

Source Code of appointment.business.ISessionManagement

package appointment.business;

import java.io.Serializable;

import javax.annotation.PostConstruct;
import javax.ejb.Stateful;

import appointment.objects.User;

@Stateful()
public class ISessionManagement implements Serializable, ISessionManagementLocal {

  private static final long serialVersionUID = 1L;

  private User _user;

  public ISessionManagement() {
  }

  public User getCurrentUser() {
    return _user;
  }
 
  public void setCurrentUser(User user) {
    _user = user;
  }
 
  @PostConstruct()
  public void postConstruct() {
    _user = new User("Donald", "asdasd@asdasd.de", "123");
    System.out.println("ISessionManagement.postConstruct()");
  }
}
TOP

Related Classes of appointment.business.ISessionManagement

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.