Custom object injection for views and scripting contexts

Description

Loading classes in a Velocity template might be accomplished via :

#set ($myClass = $profileRequestContext.getClass().forName("my.Class").newInstance())

but probably the constructor should be determined and newInstance(initargs) should be called instead.

http://shibboleth.net/pipermail/users/2015-July/022902.html

Environment

None

Activity

Show:

Rod WiddowsonOctober 9, 2015 at 3:23 PM

Complete

Rod WiddowsonOctober 9, 2015 at 2:56 PM

Documentation and release notes done. Still pending is the call on whether to default the custom object or not

Rod WiddowsonOctober 3, 2015 at 10:43 AM

Documentation and release notes still pending

Rod WiddowsonSeptember 14, 2015 at 4:59 PM

Final four done.

Keeping this pending central testing and documentation.

Rod WiddowsonSeptember 14, 2015 at 4:22 PM

I don't think we can. Spring looks for the hard wired name and explodes (at least that is my memory of how this happens).

Either way its not a big deal in this case.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Created July 20, 2015 at 10:32 PM
Updated October 9, 2015 at 3:24 PM
Resolved October 9, 2015 at 3:23 PM

Flag notifications