MDA 0.7 Question

Krug, Jeff Jeff.Krug at gtri.gatech.edu
Wed Apr 18 17:06:23 BST 2012


Many thanks Ian.  I saw those factories in the google docs, but I did not realize I was not sure how to use them.  This last change got things working in my testbed, and so I went through and updated the config3.xml example on the web.

________________________________________
From: dev-bounces at shibboleth.net [dev-bounces at shibboleth.net] on behalf of Ian Young [ian at iay.org.uk]
Sent: Wednesday, April 18, 2012 9:55 AM
To: Shib Dev
Subject: Re: MDA 0.7 Question

On 18 Apr 2012, at 14:45, Krug, Jeff wrote:

> <bean class="org.opensaml.util.Pair">
>     <constructor-arg ref="outputAll"/>
>     <constructor-arg>
>         <bean class="net.shibboleth.metadata.AlwaysItemSelectionStrategy"/>
>     </constructor-arg>
> </bean>

> The AlwaysItemSelectionStrategy specified above does not exist.

Right, we have moved over to using the Guava API where possible and the selection strategy framework has been replaced with Predicate.  The good news is that their Predicates class has nice utility methods in it for cases like this.

Here's a bean definition for an appropriate "always" selector:

    <bean id="everythingSelector" class="com.google.common.base.Predicates"
        factory-method="alwaysTrue"/>

Hope this helps,

        -- Ian


More information about the dev mailing list