Package org.glassfish.jersey.model
Interface Parameter.ParamCreationFactory<PARAMETER extends Parameter>
- Type Parameters:
PARAMETER
- theParameter
to 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 instantiateBeanParameter
of given propertiescreateParameter
(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue) Factory method to instantiateParameter
of given propertiesboolean
Determine 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:
true
if the source of origin corresponds to theParamCreationFactory
,false
otherwise.
-
createParameter
PARAMETER createParameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue) Factory method to instantiateParameter
of 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 instantiateBeanParameter
of given properties- Returns:
- instantiated
BeanParameter
-