3.2.x and Earlier Login Switching

Cantor, Scott cantor.2 at osu.edu
Tue Aug 23 20:00:25 EDT 2016


On 8/23/16 7:41 PM, Klingenstein, Nate wrote:
> I have one stupid question that is going to kill me if I don't know why.
> I'm sorry for it and the lame joke, but, why must there be String beans?
> 
> e.g.
> 
>     <bean id="osu.authn.Duo.OptInCookieName" class="java.lang.String" c:_0="osu_idp_duo" />
> 
> and not just a 
> 
> osu.authn.Duo.OptInCookieName = osu_idp_duo
> 
> line in duo.properties?

Because using a separate bean means the value can be put in directly or
pulled from a property as the situation warrants.

If you're asking why Spring doesn't have a simpler syntax for declaring
strings, you'd have to ask them, they definitely need one.

-- Scott


More information about the users mailing list