I made a custom translator to solve my problem.

But if I'm right then ResourceTranslator creates relative resources which seems useless in case of file and context resources (because they store only the relative part of the path and their getResourceURL() return null). Classpath resources work as expected.

BR,
Norbi

----- Original Message ----- From: "Norbert Sándor" <[EMAIL PROTECTED]>
To: "Users HiveMind" <[email protected]>
Sent: Tuesday, October 04, 2005 11:35 PM
Subject: config. q.


Hi,

I have the following configuration:

<configuration-point id="ConfigPoint">
<element name="resource" key-attribute="name">
<attribute name="name" required="true"/>
<attribute name="path" required="true" translator="resource"/>
<rules>
<push-attribute attribute="path"/>
<invoke-parent method="addElement"/>
</rules>
</element>
</schema>
</configuration-point>

My problem is that the resource is added as a FileResource which contains only the relative path to the module descriptor. But where I want to use it I must have an absolute path to be able to open the file.
How can I achieve this? Should I write my own translator?

Thanks,
Norbi


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • config. q. Norbert Sándor
    • Re: config. q. Norbert Sándor

Reply via email to