@Internal public class ProviderFactory extends java.lang.Object
Constructor and Description |
---|
ProviderFactory() |
Modifier and Type | Method and Description |
---|---|
static <P> java.util.Optional<P> |
createProvider(java.lang.Class<P> providerType,
BeanProvider<?> beanProvider)
Creates a provider of the requested type.
|
static java.util.Set<java.lang.Class> |
getProviders() |
static boolean |
isProvider(java.lang.Class clazz) |
static boolean |
isProvider(java.lang.String clazz) |
@NonNull public static <P> java.util.Optional<P> createProvider(java.lang.Class<P> providerType, @NonNull BeanProvider<?> beanProvider)
P
- The provider typeproviderType
- The provider type classbeanProvider
- The bean providerpublic static boolean isProvider(java.lang.String clazz)
clazz
- A class namepublic static boolean isProvider(java.lang.Class clazz)
clazz
- A classpublic static java.util.Set<java.lang.Class> getProviders()