|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.core.spi.factory.InjectableProviderFactory
public class InjectableProviderFactory
A factory for managing InjectableProvider
instances.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.sun.jersey.spi.inject.InjectableProviderContext |
---|
InjectableProviderContext.InjectableScopePair |
Constructor Summary | |
---|---|
InjectableProviderFactory()
|
Method Summary | ||
---|---|---|
void |
add(InjectableProvider ip)
|
|
void |
configure(ProviderServices providerServices)
|
|
void |
configureProviders(ProviderServices providerServices)
|
|
|
getInjectable(java.lang.Class<? extends java.lang.annotation.Annotation> ac,
ComponentContext ic,
A a,
C c,
ComponentScope s)
Get an injectable. |
|
|
getInjectable(java.lang.Class<? extends java.lang.annotation.Annotation> ac,
ComponentContext ic,
A a,
C c,
java.util.List<ComponentScope> ls)
Get an injectable. |
|
|
getInjectableWithScope(java.lang.Class<? extends java.lang.annotation.Annotation> ac,
ComponentContext ic,
A a,
C c,
java.util.List<ComponentScope> ls)
Get an injectable. |
|
boolean |
isAnnotationRegistered(java.lang.Class<? extends java.lang.annotation.Annotation> ac,
java.lang.Class<?> cc)
Check if an annotation and context type is registered for injection. |
|
boolean |
isInjectableProviderRegistered(java.lang.Class<? extends java.lang.annotation.Annotation> ac,
java.lang.Class<?> cc,
ComponentScope s)
|
|
void |
update(InjectableProviderFactory ipf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InjectableProviderFactory()
Method Detail |
---|
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(java.lang.Class<? extends java.lang.annotation.Annotation> ac, java.lang.Class<?> cc)
InjectableProviderContext
isAnnotationRegistered
in interface InjectableProviderContext
ac
- the annotation class.cc
- the context type.
public boolean isInjectableProviderRegistered(java.lang.Class<? extends java.lang.annotation.Annotation> ac, java.lang.Class<?> cc, ComponentScope s)
isInjectableProviderRegistered
in interface InjectableProviderContext
public final <A extends java.lang.annotation.Annotation,C> Injectable getInjectable(java.lang.Class<? extends java.lang.annotation.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 java.lang.annotation.Annotation,C> Injectable getInjectable(java.lang.Class<? extends java.lang.annotation.Annotation> ac, ComponentContext ic, A a, C c, java.util.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 java.lang.annotation.Annotation,C> InjectableProviderContext.InjectableScopePair getInjectableWithScope(java.lang.Class<? extends java.lang.annotation.Annotation> ac, ComponentContext ic, A a, C c, java.util.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |