Package org.jboss.resteasy.core
Class MapFormInjector
- All Implemented Interfaces:
ValueInjector
Can inject maps.
-
Constructor Summary
ConstructorsConstructorDescriptionMapFormInjector(Class collectionType, Class keyType, Class valueType, String prefix, ResteasyProviderFactory factory) Constructor. -
Method Summary
Methods inherited from class org.jboss.resteasy.core.AbstractCollectionFormInjector
injectMethods inherited from class org.jboss.resteasy.core.PrefixedFormInjector
doInject, hasValueMethods inherited from class org.jboss.resteasy.core.FormInjector
inject
-
Constructor Details
-
MapFormInjector
public MapFormInjector(Class collectionType, Class keyType, Class valueType, String prefix, ResteasyProviderFactory factory) Constructor.- Parameters:
collectionType- collection typekeyType- key typevalueType- value typeprefix- prefixfactory- provider factory
-
-
Method Details
-
createInstance
Creates an instance of the collection type.- Specified by:
createInstancein classAbstractCollectionFormInjector<Map>- Parameters:
collectionType- collection type- Returns:
- object instance of type T
-
addTo
Adds the item to the collection.- Specified by:
addToin classAbstractCollectionFormInjector<Map>- Parameters:
collection- collectionkey- keyvalue- value
-