Hello,
We're a Tapestry 4 shop. I need to override the asset service within
the tapestry.services.FactoryServices contribution point with my own
asset service.
My wrinkle is that I also need to inject the existing asset service as a
property during construction of my own asset service.
How may I do this?
This is my configuration, nonfunctional, today:
<contribution
configuration-id="tapestry.services.FactoryServices">
<service name="asset"
object="service:SecuredAssetService" />
</contribution>
<service-point id="SecuredAssetService"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct
class="gov.usitc.tapestry.asset.SecuredAssetService">
<set-object property="authorizer"
value="service:LinkAuthorizer" />
<set-object property="identifier"
value="service:LinkTargetIdentifier" />
<set-object property="authenticationDelegate"
value="service:edis3.cas.acegi.warppers.AuthenticationDelegate" />
<set-object property="inner"
value="service:tapestry.services.Asset"/>
</construct>
</invoke-factory>
</service-point>
The error I'm receiving is:
org.apache.hivemind.ApplicationRuntimeException: Element service (at
jar:file:/C:/containers/presentation/tomcat-5.5.17/temp/2-edis3-central/
WEB-INF/lib/tapestry-4.0.2.patched.jar!/META-INF/tapestry.services.xml,
line 59, column 51) contains errors: Value for attribute 'name'
('asset') duplicates a prior instance at
jar:file:/C:/containers/presentation/tomcat-5.5.17/temp/2-edis3-central/
WEB-INF/lib/UsitcTapestryLibrary-1.0-SNAPSHOT.jar!/META-INF/gov.usitc.en
hance.xml, line 19, column 64.
[jar:file:/C:/containers/presentation/tomcat-5.5.17/temp/2-edis3-central
/WEB-INF/lib/tapestry-4.0.2.patched.jar!/META-INF/tapestry.services.xml,
line 59, column 51]
Thanks,
-jason
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]