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:
jersey.repackaged.com.google.common.base.Function<org.glassfish.hk2.api.Factory<T>,T>

public final class FactoryToService<T>
extends Object
implements jersey.repackaged.com.google.common.base.Function<org.glassfish.hk2.api.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(org.glassfish.hk2.api.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 jersey.repackaged.com.google.common.base.Function
equals
 

Constructor Detail

FactoryToService

public FactoryToService()
Method Detail

apply

public T apply(org.glassfish.hk2.api.Factory<T> input)
Specified by:
apply in interface jersey.repackaged.com.google.common.base.Function<org.glassfish.hk2.api.Factory<T>,T>


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.