public class UserManagerFactory extends Object
UserManagerFactory
Modifier and Type | Method and Description |
---|---|
static UserManagerFactory |
getInstance()
This method should be used to create an instance of UserManagerFactory.
|
UserManager |
getUserManager()
Returns the
UserManager as a singleton. |
UserManager |
getUserManager(EventServiceConfiguration aConfiguration)
Returns the
UserManager as a singleton. |
UserManager |
getUserManager(long aTimeoutInterval)
Returns the
UserManager as a singleton. |
public static UserManagerFactory getInstance()
public UserManager getUserManager()
UserManager
as a singleton. It is important that
the UserManager
must be initiated first. That can be done by
creating a UserManager
with a configuration:
getUserManager(de.novanic.eventservice.config.EventServiceConfiguration)
or getUserManager(long)
. When the
UserManager
isn't initiated the method throws a
ConfigurationException
.UserManager
(singleton)ConfigurationException
- thrown when the UserManager
isn't
initiated first with getUserManager(de.novanic.eventservice.config.EventServiceConfiguration)
or getUserManager(long)
public UserManager getUserManager(EventServiceConfiguration aConfiguration)
UserManager
as a singleton.aConfiguration
- EventServiceConfiguration
used to read the timeout time/interval.UserManager
(singleton)public UserManager getUserManager(long aTimeoutInterval)
UserManager
as a singleton.aTimeoutInterval
- timeout interval (is only required if the UserActivityScheduler
needs to be started).UserManager
(singleton)Copyright © 2012. All Rights Reserved.