Package org.jboss.resteasy.core
Class MapFormInjector
- All Implemented Interfaces:
ValueInjector
Can inject maps.
-
Constructor Summary
ConstructorDescriptionMapFormInjector
(Class collectionType, Class keyType, Class valueType, String prefix, ResteasyProviderFactory factory) Constructor. -
Method Summary
Methods inherited from class org.jboss.resteasy.core.AbstractCollectionFormInjector
inject
Methods inherited from class org.jboss.resteasy.core.PrefixedFormInjector
doInject, hasValue
Methods 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:
createInstance
in classAbstractCollectionFormInjector<Map>
- Parameters:
collectionType
- collection type- Returns:
- object instance of type T
-
addTo
Adds the item to the collection.- Specified by:
addTo
in classAbstractCollectionFormInjector<Map>
- Parameters:
collection
- collectionkey
- keyvalue
- value
-