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