<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Sample3</title><link>https://sourceforge.net/p/scfjava/wiki/Sample3/</link><description>Recent changes to Sample3</description><atom:link href="https://sourceforge.net/p/scfjava/wiki/Sample3/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 22 Oct 2012 22:56:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/scfjava/wiki/Sample3/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Sample3 modified by scf</title><link>https://sourceforge.net/p/scfjava/wiki/Sample3/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -1,6 +1,10 @@
 ### Abstract ###
 
 This sample show us how to use the **PropertyManager**
+
+---
+
+Este ejemplo nos muestra como utilizar el **PropertyManager**
 
 ### config.properties ###
 ~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scf</dc:creator><pubDate>Mon, 22 Oct 2012 22:56:55 -0000</pubDate><guid>https://sourceforge.neta177287aa4f082a6ebb473e53f462069666a500b</guid></item><item><title>WikiPage Sample3 modified by scf</title><link>https://sourceforge.net/p/scfjava/wiki/Sample3/</link><description>### Abstract ###

This sample show us how to use the **PropertyManager**

### config.properties ###
~~~~~~
:::properties

finders=switch,environment,system

finder.switch.class= ar.com.scf.impl.PropertyFinder
finder.switch.params= sample03/switch.properties

finder.environment.class= ar.com.scf.impl.PropertyFinder
finder.environment.params= sample03/${environment}.properties

finder.system.class= ar.com.scf.impl.SystemPropertyFinder
finder.system.params

~~~~~~
---

### switch.properties ###
~~~~~~
:::properties

environment=linux
~~~~~~
---

### linux.properties ###
~~~~~~
:::properties

config.os.name=Linux
~~~~~~
---

### windows.properties ###
~~~~~~
:::properties

config.os.name=Windows
~~~~~~
---

### Sample.java ###
~~~~~~
:::java

package ar.com.scf.sample03;

import java.io.File;

import ar.com.scf.impl.PropertyManager;

public class Sample {

  public static void main(String[] args) {
    PropertyManager manager = new PropertyManager(new File("sample03/config.properties"));
    System.out.println(manager.getReplacer().expand("Current S.O. config: ${config.os.name}"));
    System.out.println(manager.getReplacer().expand("Current S.O.: ${os.name}"));
  }

}

~~~~~~

---
### output ###
~~~~~~
:::console

Current S.O. config: Linux
Current S.O.: Windows XP
~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scf</dc:creator><pubDate>Wed, 17 Oct 2012 23:20:37 -0000</pubDate><guid>https://sourceforge.net582acf863a42ddade0ba8c3438aa859cf8c835c1</guid></item></channel></rss>