public void testMethod()
    {
      ResourceService resourceService = 
                
(ResourceService)TurbineServices.getInstance().getService(ResourceService.SERVICE_NAME);
        //prefixes are optional.  If you want, you can get a property with the 
complete name
        //This returns all of the properties that begin with search
      ResourceService searchServ = resourceService.getResources("search");
      String indexOutputDirectory = 
searchServ.getString(IndexData.INDEX_OUTPUT_DIRECTORY);
        String[] objectClassNames = searchServ.getStringArray(OBJECT_CLASS_NAMES);
      

        return succeeded;
    }


r,
Hugh

-----Original Message-----
From: Joe Sulewski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 1:50 PM
To: Jetspeed Users List
Subject: Re: Properties file


Hugh,

Thanks for your reply. What is the ResourceService? Is there any sample 
code that shows how to access the values of my properties file?

Thanks,
Joe


Hugh Brien wrote:

>Create your own properties file and include it 
>in TR.properties. For example
>
>include = MyProps.properties
>
>Any properties put in there can be found using
>the ResourceService
>
>
>
>
>
>-----Original Message-----
>From: Joe Sulewski [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, July 30, 2002 4:53 PM
>To: Jetspeed Users List
>Subject: Properties file
>
>
>Hello,
>
>I wish to create a properties file that can be read by my portlets. 
>Where is the best place to put the properties file and how should I go 
>about finding the location of the properties file programmatically?
>
>Thank you,
>
>Joe
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>




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


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

Reply via email to