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

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

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

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

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

Constructor Summary
ProviderToService()
           
 
Method Summary
 T apply(ServiceHandle<T> input)
           
 
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

ProviderToService

public ProviderToService()
Method Detail

apply

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


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