Package org.glassfish.jersey.model
Interface Parameter.ParamCreationFactory<PARAMETER extends Parameter>
- Type Parameters:
PARAMETER- theParameterto be instatiated
- Enclosing class:
- Parameter
public static interface Parameter.ParamCreationFactory<PARAMETER extends Parameter>
A factory service to found in a runtime to be used to instantiate the given
Parameter class.-
Method Summary
Modifier and TypeMethodDescriptioncreateBeanParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue) Factory method to instantiateBeanParameterof given propertiescreateParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue) Factory method to instantiateParameterof given propertiesbooleanDetermine whether the Factory is for the given class to be instantiated.
-
Method Details
-
isFor
Determine whether the Factory is for the given class to be instantiated.- Parameters:
clazz- The class of determining the source of origin (core, server). Each source of origin has its ownParamCreationFactory- Returns:
trueif the source of origin corresponds to theParamCreationFactory,falseotherwise.
-
createParameter
PARAMETER createParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue) Factory method to instantiateParameterof given properties- Returns:
- instantiated
Parameter
-
createBeanParameter
PARAMETER createBeanParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue) Factory method to instantiateBeanParameterof given properties- Returns:
- instantiated
BeanParameter
-