Skip to content

StringProperties is a Java Properties with Extra features (like ${placeholders})

License

Notifications You must be signed in to change notification settings

ggrandes/stringproperties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stringproperties

StringProperties is Java Properties with Extra Features. Open Source Java project under Apache License v2.0

Current Stable Version is 1.0.1


DOC

Usage Example

import org.javastack.stringproperties.StringProperties;

public class Example {
	public static void main(final String[] args) throws Throwable {
		StringProperties p = new StringProperties();
		p.setProperty("state", "awake");
		p.setProperty("msg", "Hi ${user.name}, how are you ${state}?");
		System.out.println(p.getPropertyEval("msg"));
	}
}

MAVEN

Add the dependency to your pom.xml:

<dependency>
    <groupId>org.javastack</groupId>
    <artifactId>stringproperties</artifactId>
    <version>1.0.1</version>
</dependency>

Inspired in Java Properties and Spring-Placeholders.

About

StringProperties is a Java Properties with Extra features (like ${placeholders})

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages