org.glassfish.pfl.basic.contain
Class ResourceFactory<T>
java.lang.Object
org.glassfish.pfl.basic.contain.ResourceFactory<T>
- Type Parameters:
T - Type created by resource factory.
public class ResourceFactory<T>
- extends Object
A thread-safe, contention-free lazy resource factory.
- Author:
- ken
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFactory
public ResourceFactory(NullaryFunction<T> cons)
get
public T get()
Copyright © 2013 Oracle. All Rights Reserved.