org.glassfish.pfl.basic.contain
Class ResourceFactory<T>

java.lang.Object
  extended by 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

Constructor Summary
ResourceFactory(NullaryFunction<T> cons)
           
 
Method Summary
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFactory

public ResourceFactory(NullaryFunction<T> cons)
Method Detail

get

public T get()


Copyright © 2013 Oracle. All Rights Reserved.