Hi Paul,
On Jun 21, 2011, at 6:54 PM, Paul Morris wrote:
> Can somebody give me a hint as to how to use spring bean injection to do the
> following within the Component?
>
> Here is the functionality I need to achieve within my applicationContext.xml:
>
> Engine.getInstance().getRegisteredAuthenticators().add(new
> AuthenticatorHelper());
I do this by making the helper self-register via the InitializingBean
interface. Example:
https://github.com/NUBIC/psc-mirror/blob/trunk/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/restlets/PscAuthenticatorHelper.java
Rhett
>
> This is as far as I've gotten in the beans xml:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>bean="component.context" />
>
>
>
>
>
>
>
>
>
>
>
>
>
>value="org.apius.identity.openam.session.SessionProxyImpl" />
>key="/session/attributes"
> value="org.apius.identity.openam.session.SessionAttributesImpl" />
>
>
>
>
>
>
>
>
>
>
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2771784
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2772127