org.glassfish.jersey.internal.inject
Class ProviderToFactory<T>

java.lang.Object
  extended by org.glassfish.jersey.internal.inject.ProviderToFactory<T>
Type Parameters:
T - service contract Java type.
All Implemented Interfaces:
com.google.common.base.Function<ServiceHandle<T>,Factory<T>>

public final class ProviderToFactory<T>
extends Object
implements com.google.common.base.Function<ServiceHandle<T>,Factory<T>>

Helper function converting a HK2 service provider into the provided service contract instance.

Author:
Marek Potociar (marek.potociar at oracle.com)

Constructor Summary
ProviderToFactory()
           
 
Method Summary
 Factory<T> apply(ServiceHandle<T> provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ProviderToFactory

public ProviderToFactory()
Method Detail

apply

public Factory<T> apply(ServiceHandle<T> provider)
Specified by:
apply in interface com.google.common.base.Function<ServiceHandle<T>,Factory<T>>


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.