Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A Scripted Consumer is instantiated using one of two static factory methods (rather than created directly by invoking a Java constructor), so they have a different syntax in Spring. You can refer to the javadoc (ConsumerScriptedConsumer, BiConsumer ScriptedBiConsumer) for complete details.

Expand
titleinlineScript

If provided with one parameter, this is the script to be executed. If two parameters are the provided, then the first is the name of the (installed) JSR-223 lanuage and the second is the script.

Code Block
<bean id="MyConsumer" parent="shibboleth.Consumers.Scripted" factory-method="inlineScript"
		p:inputType="org.example.SomeClass"
		p:hideExceptions="true">
    <constructor-arg>
        <value>
        <![CDATA[
			input.doSomething();
         ]]>
        </value>
    </constructor-arg>
</bean>

...