public final class OneTimeSecurityFactory<T> extends Object implements SecurityFactory<T>
SecurityFactory
implementation which calls delegated factory at first and
returns created object for any other create call. Thread safe.Constructor and Description |
---|
OneTimeSecurityFactory(SecurityFactory<T> factory)
Creates a new factory instance.
|
public OneTimeSecurityFactory(SecurityFactory<T> factory)
factory
- a security factory to use to obtain object which should be returned by this factory every timepublic T create() throws GeneralSecurityException
SecurityFactory
create
in interface SecurityFactory<T>
GeneralSecurityException
- if instantiation fails for some reasonCopyright © 2020 JBoss by Red Hat. All rights reserved.