public interface UserInfoFactory
UserInfo
objects decoupling implementation from API.
The implementation of the factory is loaded via Java's ServiceLoader
.Modifier and Type | Field and Description |
---|---|
static UserInfoFactory |
INSTANCE
The instance loaded via Java's
ServiceLoader . |
Modifier and Type | Method and Description |
---|---|
ModifiableUserInfo |
create(UserInfo userInfo)
Creates a
ModifiableUserInfo based on passed UserInfo . |
static final UserInfoFactory INSTANCE
ServiceLoader
.ModifiableUserInfo create(UserInfo userInfo)
ModifiableUserInfo
based on passed UserInfo
.
If userInfo
is null
, a ModifiableUserInfo
based on default values of a clear UserInfo
is returned.userInfo
- The UserInfo
as basis.ModifiableUserInfo
instance.Copyright © 2020. All rights reserved.