org.jboss.solder.servlet.http
Class RequestParamProducer
java.lang.Object
org.jboss.solder.servlet.http.RequestParamProducer
public class RequestParamProducer
- extends Object
A producer for a String bean qualified @RequestParam.
Provides a producer method that retrieves the value of the specified request parameter from
ServletRequest.getParameter(String) and makes it available as a dependent-scoped bean of type String qualified
@RequestParam. The name of the request parameter to lookup is either the value of the @RequestParam annotation or,
if the annotation value is empty, the name of the injection point (e.g., the field name).
If the request parameter is not present, and the injection point is annotated with @DefaultValue, the value of the
@DefaultValue annotation is returned instead. If @DefaultValue is not present, null is returned.
- Author:
- Nicklas Karlsson, Dan Allen
- See Also:
RequestParam,
DefaultValue
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestParamProducer
public RequestParamProducer()
getTypedParamValue
@Produces
@TypedParamValue
protected Object getTypedParamValue(javax.enterprise.inject.spi.InjectionPoint ip,
ServletExtension ext)
Copyright © 2008-2011 Seam Framework. All Rights Reserved.