MDA 0.7 Question

Ian Young ian at iay.org.uk
Wed Apr 18 14:55:25 BST 2012


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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4813 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/dev/attachments/20120418/eebb5ecc/attachment.bin 


More information about the dev mailing list