No problem. Here's how I use symbols in my tapestr-acegi module:
<contribution configuration-id="hivemind.FactoryDefaults">
<default symbol="tapestry.acegi.anonymous.key" value="acegi_anonymous"/>
<default symbol="tapestry.acegi.anonymous.userAttribute"
value="anonymous,ROLE_ANONYMOUS"/>
</contribution>
<service-point
id="AnonymousProcessingFilter"
interface="javax.servlet.Filter">
<invoke-factory>
<construct
class="org.acegisecurity.providers.anonymous.AnonymousProcessingFilter"
initialize-method="afterPropertiesSet">
<set property="key"
value="${tapestry.acegi.anonymous.key}"/>
<set property="userAttribute"
value="${tapestry.acegi.anonymous.userAttribute}"/>
</construct>
</invoke-factory>
</service-point>
If you want to see the whole file, you can look at:
http://svn.javaforge.com/svn/tapestry/tapestry-acegi/trunk/src/main/resource
s/META-INF/hivemodule.xml
Use anonymous/anon to login if it asks (which it should). Hope that helps!
-----Original Message-----
From: Aleksej [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 9:44 AM
To: [email protected]
Subject: Re: How to inject into many services the same Long value?
Thanks Shing and James!
I will investigates symbols a little bit later, coz now my head is about
to blow :)