org.qi4j.library.eventsourcing.domain.factory
Class CurrentUserSubject

java.lang.Object
  extended by org.qi4j.library.eventsourcing.domain.factory.CurrentUserSubject
All Implemented Interfaces:
CurrentUser

public class CurrentUserSubject
extends Object
implements CurrentUser

Uses thread-associated Subject to get the current user name. Default to "unknown".


Constructor Summary
CurrentUserSubject()
           
 
Method Summary
 String getCurrentUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentUserSubject

public CurrentUserSubject()
Method Detail

getCurrentUser

public String getCurrentUser()
Specified by:
getCurrentUser in interface CurrentUser