|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.inject.AbstractValueFactoryProvider<A>
A - injection annotation type that is supported by the provider.public abstract class AbstractValueFactoryProvider<A extends java.lang.annotation.Annotation>
A parameter value factory provider that provides parameter value factories
which are using MultivaluedParameterExtractorProvider to extract parameter
values from the supplied multivalued
parameter map.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.jersey.server.spi.internal.ValueFactoryProvider |
|---|
ValueFactoryProvider.Priority, ValueFactoryProvider.PriorityType |
| Constructor Summary | |
|---|---|
protected |
AbstractValueFactoryProvider(MultivaluedParameterExtractorProvider mpep,
org.glassfish.hk2.inject.Injector injector,
Parameter.Source... compatibleSources)
Initialize the provider. |
| Method Summary | |
|---|---|
protected abstract org.glassfish.hk2.Factory<?> |
createValueFactory(Parameter parameter)
Create a value factory for the parameter. |
protected MultivaluedParameterExtractor<?> |
get(Parameter parameter)
Get a parameter extractor. |
ValueFactoryProvider.PriorityType |
getPriority()
Gets the priority of this provider. |
org.glassfish.hk2.Factory<?> |
getValueFactory(Parameter parameter)
Get an injected value factory for the parameter. |
protected MultivaluedParameterExtractor<?> |
getWithoutDefaultValue(Parameter parameter)
Get a parameter extractor that ignores default value set on the parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractValueFactoryProvider(MultivaluedParameterExtractorProvider mpep,
org.glassfish.hk2.inject.Injector injector,
Parameter.Source... compatibleSources)
mpep - MultivaluedParameterExtractorProvider to be used for
retrieving extractors that can parameter values from the supplied
multivalued parameter map.| Method Detail |
|---|
protected final MultivaluedParameterExtractor<?> getWithoutDefaultValue(Parameter parameter)
parameter - parameter supported by the returned extractor.
get(org.glassfish.jersey.server.model.Parameter)protected final MultivaluedParameterExtractor<?> get(Parameter parameter)
getWithoutDefaultValue(org.glassfish.jersey.server.model.Parameter)
method, the extractor returned from this method will use the default value
set on the parameter, in case the parameter is not found in the supplied
multivalued parameter map.
parameter - parameter supported by the returned extractor.
protected abstract org.glassfish.hk2.Factory<?> createValueFactory(Parameter parameter)
null in case
the parameter is not supported by the value factory provider.
parameter - parameter requesting the value factory instance.
null if parameter is
not supported.public final org.glassfish.hk2.Factory<?> getValueFactory(Parameter parameter)
null
in case the parameter is not supported by the value factory provider.
getValueFactory in interface ValueFactoryProviderparameter - parameter requesting the value factory instance.
null if parameter
is not supported.public ValueFactoryProvider.PriorityType getPriority()
ValueFactoryProvider
getPriority in interface ValueFactoryProviderValueFactoryProvider.PriorityType,
ValueFactoryProvider.Priority
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||