com.evasion.AbstractEJBModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of API Show documentation
Show all versions of API Show documentation
API de l'application modulaire evasion-en-ligne
The newest version!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.evasion;
import java.security.Principal;
import javax.annotation.Resource;
import javax.ejb.SessionContext;
/**
*
* @author sglon
*/
public class AbstractEJBModule extends AbstractModule {
@Resource
private SessionContext context;
@Override
public Principal getPrincipal() {
return context.getCallerPrincipal();
}
}