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

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

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

Helper function converting a HK2 service factory into the service contract instance.

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

Constructor Summary
FactoryToService()
           
 
Method Summary
 T apply(Factory<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

FactoryToService

public FactoryToService()
Method Detail

apply

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


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