001    package org.tynamo;
002    
003    import java.io.IOException;
004    import java.util.Properties;
005    
006    public abstract class VersionedModule
007    {
008            protected static final String version;
009    
010            static
011            {
012                    Properties moduleProperties = new Properties();
013                    String aVersion = "unversioned";
014                    try
015                    {
016                            moduleProperties.load(VersionedModule.class.getResourceAsStream("module.properties"));
017                            aVersion = moduleProperties.getProperty("module.version");
018                    } catch (IOException e)
019                    {
020                            // ignore
021                    }
022                    version = aVersion;
023            }
024    
025    }