public class Factories extends Object
| Constructor and Description |
|---|
Factories() |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.glassfish.hk2.api.Factory<T> |
of(javax.inject.Provider<T> provider)
Create a factory from a provider.
|
static <T extends Closeable> |
of(T instance) |
static <T extends AutoCloseable> |
of(T instance) |
public static <T> org.glassfish.hk2.api.Factory<T> of(javax.inject.Provider<T> provider)
public static <T extends AutoCloseable> org.glassfish.hk2.api.Factory<T> of(T instance)
public static <T extends Closeable> org.glassfish.hk2.api.Factory<T> of(T instance)
Copyright © 2016. All rights reserved.