org.glassfish.jersey.internal.inject
Class FactoryToService<T>
java.lang.Object
org.glassfish.jersey.internal.inject.FactoryToService<T>
- Type Parameters:
T - service contract Java type.
- All Implemented Interfaces:
- com.google.common.base.Function<org.glassfish.hk2.api.Factory<T>,T>
public final class FactoryToService<T>
- extends Object
- implements 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)
|
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 com.google.common.base.Function |
equals |
FactoryToService
public FactoryToService()
apply
public T apply(org.glassfish.hk2.api.Factory<T> input)
- Specified by:
apply in interface 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.