to.etc.domui.injector
Class UrlParameterInjector
java.lang.Object
to.etc.domui.injector.PropertyInjector
to.etc.domui.injector.UrlParameterInjector
public class UrlParameterInjector
- extends PropertyInjector
This property injector contains the name of an URL parameter plus the property to set from it. At
injection time it uses the name to get the string value of the URL parameter. This parameter is
then converted using the URL converters registered in the ConverterRegistry to the proper value
type of the setter.
- Author:
- Frits Jalvingh
Created on Dec 19, 2008
Constructor Summary |
UrlParameterInjector(java.lang.reflect.Method propertySetter,
java.lang.String name,
boolean mandatory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlParameterInjector
public UrlParameterInjector(java.lang.reflect.Method propertySetter,
java.lang.String name,
boolean mandatory)
inject
public void inject(UrlPage page,
RequestContextImpl ctx,
PageParameters papa)
throws java.lang.Exception
- Effects the actual injection of an URL parameter to a value.
- Specified by:
inject
in class PropertyInjector
- Throws:
java.lang.Exception
- See Also:
to.etc.domui.state.PageMaker.PropertyInjector#inject(to.etc.domui.server.RequestContextImpl, to.etc.domui.state.PageParameters)