Created
September 6, 2012 09:02
-
-
Save nekman/3653364 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package se.labs.app; | |
| import java.util.Properties; | |
| import se.labs.cache.ItemCache; | |
| import se.labs.cache.ItemCacheFactory; | |
| import se.labs.cache.loaders.PropertyCacheLoader; | |
| public class AppProperties { | |
| private static final ItemCache<Properties> propertyCache = ItemCacheFactory.create(new PropertyCacheLoader(), 3600); | |
| public static Properties getInstance() { | |
| return propertyCache.getItem(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment