Class OneTimeSecurityFactory<T>

java.lang.Object
org.wildfly.security.OneTimeSecurityFactory<T>
All Implemented Interfaces:
SecurityFactory<T>

public final class OneTimeSecurityFactory<T> extends Object implements SecurityFactory<T>
A SecurityFactory implementation which calls delegated factory at first and returns created object for any other create call. Thread safe.
Author:
David M. Lloyd
  • Constructor Details

    • OneTimeSecurityFactory

      public OneTimeSecurityFactory(SecurityFactory<T> factory)
      Creates a new factory instance.
      Parameters:
      factory - a security factory to use to obtain object which should be returned by this factory every time
  • Method Details