<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Properties in custom-repository.properties via Alfresco API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139798#M97953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can I access properties defined in the custom-repository.properties via Alfresco-API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can simply do something like: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.util.Properties p = new java.util.Properties();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p.load(new FileInputStream("custom-repository.properties"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but may be there is a better way to do it via Alfresco-API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 11:37:34 GMT</pubDate>
    <dc:creator>webdesigner</dc:creator>
    <dc:date>2008-01-14T11:37:34Z</dc:date>
    <item>
      <title>Properties in custom-repository.properties via Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139798#M97953</link>
      <description>Hello,can I access properties defined in the custom-repository.properties via Alfresco-API?I can simply do something like: java.util.Properties p = new java.util.Properties();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;p.load(new FileInputStream("custom-repository.properties"));but may be there is a better way to do it via Alfresc</description>
      <pubDate>Mon, 14 Jan 2008 11:37:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139798#M97953</guid>
      <dc:creator>webdesigner</dc:creator>
      <dc:date>2008-01-14T11:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Properties in custom-repository.properties via Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139799#M97954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Configuration of which property files are loaded during boot process is done in core-services-context.xml. This configuration can be changed or overriden in your custom config files. After the custom property file is loaded, property value can be injected in your spring bean using following syntax ${property.name}. It has been used extensively in alfresco configuration so there are a lot of examples&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 15:54:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139799#M97954</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-01-14T15:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Properties in custom-repository.properties via Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139800#M97955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Denis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You explained how to inject dependancies in Spring config, but how do you get the property values from Java API ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 10:01:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139800#M97955</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2008-01-15T10:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Properties in custom-repository.properties via Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139801#M97956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the process I have tried to explain it is not dependencies that are getting injected but rather simple string values from loaded property files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Such method of obtaining property values is used allover alfresco application therefore, I guess, this would be the preffered way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 12:10:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/properties-in-custom-repository-properties-via-alfresco-api/m-p/139801#M97956</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-01-15T12:10:06Z</dc:date>
    </item>
  </channel>
</rss>

