net.java.dev.vcc.util
Class ServiceLoaderCache<T>

java.lang.Object
  extended by net.java.dev.vcc.util.ServiceLoaderCache<T>

public final class ServiceLoaderCache<T>
extends java.lang.Object

Created by IntelliJ IDEA. User: user Date: 06-May-2009 Time: 18:13:01 To change this template use File | Settings | File Templates.


Constructor Summary
ServiceLoaderCache(java.lang.Class<T> serviceClass)
           
 
Method Summary
 ServiceLoaderProxy<T> get(java.lang.ClassLoader classloader)
          Gets the ServiceLoaderProxy from the weak cache, or creates a new one if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLoaderCache

public ServiceLoaderCache(java.lang.Class<T> serviceClass)
Method Detail

get

public final ServiceLoaderProxy<T> get(java.lang.ClassLoader classloader)
Gets the ServiceLoaderProxy from the weak cache, or creates a new one if needed.

Parameters:
classloader - The classloader we are to get the ServiceLoaderProxy from.
Returns:
The ServiceLoaderProxy for the specified classloader.


Copyright © 2009. All Rights Reserved.