<div dir="ltr">I give up.  I'm trying to use this as a base <a href="http://shibboleth.net/pipermail/users/2015-July/022678.html">http://shibboleth.net/pipermail/users/2015-July/022678.html</a><div><br></div><div>This stuff seems straightforward enough:</div><div><br></div><div><div>    <bean id="exampleOrgRegex" class="java.util.regex.Pattern"</div><div>        factory-method="compile" c:_0="^http[s]?://[^/]*\.example\.org.*" /></div><div><br></div><div>    <bean id="exampleOrgRegexPredicate"</div><div>        class="com.google.common.base.Predicates" factory-method="contains"</div><div>        c:_0-ref="exampleOrgRegex" /></div></div><div><br></div><div><br></div><div>The next bean I create is</div><div><br></div><div><div><div>    <bean id="RelyingPartyIdRegex"</div><div>        class="net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate" abstract="true"</div><div>        c:pred-ref="exampleOrgRegexPredicate" /></div></div></div><div><br></div><div>...which looks really similar to on from system/conf/utilities.xml...</div><div><br></div><div><div>    <bean id="shibboleth.Conditions.RelyingPartyId"</div><div>        class="net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate" abstract="true" /></div></div><div><br></div><div>...which I used successfully in a previous attempt. "shibboleth.Conditions.RelyingPartyId" doesn't specify any constructors, and is abstract.   "RelyingPartyIdRegex" specifies a reference(?) for / to a "pred" constructor.  What I gather from earlier messages in this thread is that if I instantiate "RelyingPartyIdRegex", it's already been passed a constructor and I can't pass new ones.</div><div><br></div><div>Using this version of "RelyingPartyIdRegex", I get the errors about constructor resolution failures / ambiguity.</div><div><br></div><div><br></div><div>I try this instead..</div><div><br></div><div><div>    <bean id="RelyingPartyIdRegex"</div><div>        class="net.shibboleth.idp.profile.logic.RelyingPartyIdPredicate" abstract="true"></div><div><br></div></div><div>...effectively making a copy of "shibboleth.Conditions.RelyingPartyId", that I try feeding the appropriate arguments to the multiple constructors..</div><div><br></div><div><bean parent="RelyingPartyIdRegex" c:pred-ref="exampleOrgRegexPredicate" c:candidates="#{ '<a href="https://sp.example.org">https://sp.example.org</a>' }" /><br></div><div><br></div><div>... but since there isn't a single constructor that takes both candidates /and/ predicates, this fails and I get the message about constructor resolution failures / ambiguity.</div><div><br></div><div>I'm guessing this works in Francesco's example because "RelyingPartyIdRegex" is invoked via a property instead of being instantiated?</div><div><br></div><div>This would probably be easy to someone who knows java and spring, and 15+ messages into this thread, it's pretty obvious that I don't.  Can I get another hint?</div><div><br></div><div>Liam</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 3:36 PM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 7/16/15, 3:33 PM, "users on behalf of Liam Hoekenga" <<a href="mailto:users-bounces@shibboleth.net">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:liamr@umich.edu">liamr@umich.edu</a>> wrote:<br>
<br>
>The bean I'm defining in my intercept flow conf uses that as a parent. e.g.<br>
<br>
</span>Oh, then that's the error. You've already supplied the constructor in the parent and used the Predicate version. You can't turn around and change to the other constructor here in the child.<br>
<br>
If you're trying to drive it with a regex, the details would be fed into the constructor/etc. of the Predicate that you're injecting into this bean.<br>
<div class="HOEnZb"><div class="h5"><br>
-- Scott<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br></div>