Package org.jboss.resteasy.core
Class MapFormInjector
- java.lang.Object
-
- org.jboss.resteasy.core.FormInjector
-
- org.jboss.resteasy.core.PrefixedFormInjector
-
- org.jboss.resteasy.core.AbstractCollectionFormInjector<Map>
-
- org.jboss.resteasy.core.MapFormInjector
-
- All Implemented Interfaces:
ValueInjector
public class MapFormInjector extends AbstractCollectionFormInjector<Map>
Can inject maps.
-
-
Constructor Summary
Constructors Constructor Description MapFormInjector(Class collectionType, Class keyType, Class valueType, String prefix, ResteasyProviderFactory factory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTo(Map collection, String key, Object value)
Adds the item to the collection.protected Map
createInstance(Class collectionType)
Creates an instance of the collection type.-
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 Detail
-
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 Detail
-
createInstance
protected Map createInstance(Class collectionType)
Creates an instance of the collection type.- Specified by:
createInstance
in classAbstractCollectionFormInjector<Map>
- Parameters:
collectionType
- collection type- Returns:
- object instance of type T
-
-