org.qi4j.library.eventsourcing.domain.factory

## Class CurrentUserSubject

- java.lang.Object
- - 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

    Constructors
    Constructor and Description
    `CurrentUserSubject()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`