public class InjectableProviderFactory extends Object implements InjectableProviderContext
InjectableProvider
instances.InjectableProviderContext.InjectableScopePair
Constructor and Description |
---|
InjectableProviderFactory() |
public final void update(InjectableProviderFactory ipf)
public final void add(InjectableProvider ip)
public final void configure(ProviderServices providerServices)
public final void configureProviders(ProviderServices providerServices)
public boolean isAnnotationRegistered(Class<? extends Annotation> ac, Class<?> cc)
InjectableProviderContext
isAnnotationRegistered
in interface InjectableProviderContext
ac
- the annotation class.cc
- the context type.public boolean isInjectableProviderRegistered(Class<? extends Annotation> ac, Class<?> cc, ComponentScope s)
isInjectableProviderRegistered
in interface InjectableProviderContext
public final <A extends Annotation,C> Injectable getInjectable(Class<? extends Annotation> ac, ComponentContext ic, A a, C c, ComponentScope s)
InjectableProviderContext
getInjectable
in interface InjectableProviderContext
A
- the type of the annotation.C
- the context type. Types of the Type
and
Parameter
are the only types that
are supported.ac
- the annotation class.ic
- the injectable context.a
- the annotation instance.c
- the context type.s
- the scope.public final <A extends Annotation,C> Injectable getInjectable(Class<? extends Annotation> ac, ComponentContext ic, A a, C c, List<ComponentScope> ls)
InjectableProviderContext
getInjectable
in interface InjectableProviderContext
A
- the type of the annotation.C
- the context type. Types of the Type
and
Parameter
are the only types that
are supported.ac
- the annotation class.ic
- the injectable context.a
- the annotation instance.c
- the context type.ls
- the list of scope, ordered by preference.public <A extends Annotation,C> InjectableProviderContext.InjectableScopePair getInjectableWithScope(Class<? extends Annotation> ac, ComponentContext ic, A a, C c, List<ComponentScope> ls)
InjectableProviderContext
getInjectableWithScope
in interface InjectableProviderContext
A
- the type of the annotation.C
- the context type. Types of the Type
and
Parameter
are the only types that
are supported.ac
- the annotation class.ic
- the injectable context.a
- the annotation instance.c
- the context type.ls
- the list of scope, ordered by preference.Copyright © 2019 Oracle Corporation. All rights reserved.