Package org.glassfish.jersey.model
Interface Parameter.ParamCreationFactory<PARAMETER extends Parameter>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PARAMETERcreateBeanParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue)Factory method to instantiateBeanParameterof given propertiesPARAMETERcreateParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue)Factory method to instantiateParameterof given propertiesbooleanisFor(Class<?> clazz)Determine whether the Factory is for the given class to be instantiated.
-
-
-
Method Detail
-
isFor
boolean isFor(Class<?> clazz)
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
-
-