Package org.wildfly.security
Class FixedSecurityFactory<T>
java.lang.Object
org.wildfly.security.FixedSecurityFactory<T>
- All Implemented Interfaces:
SecurityFactory<T>
A
SecurityFactory implementation which returns specified object every time.- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FixedSecurityFactory
Creates a new factory instance.- Parameters:
value- the value to be returned on create
-
-
Method Details
-
create
Description copied from interface:SecurityFactoryCreate an instance.- Specified by:
createin interfaceSecurityFactory<T>- Returns:
- the new instance
- Throws:
GeneralSecurityException- if instantiation fails for some reason
-