org.mobicents.media.server.impl
Class Version

java.lang.Object
  extended by org.mobicents.media.server.impl.Version

public final class Version
extends Object

Version class reads the version.properties packaged with media-server.jar for run time display of Media Server Version

Author:
amit.bhayani

Field Summary
static Version instance
          The single instance.
 
Method Summary
 Map getProperties()
          Returns an unmodifiable map of version properties.
 String getProperty(String name)
          Returns the value for the given property name.
 String toString()
          Returns the version information as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

public static final Version instance
The single instance.

Method Detail

getProperties

public Map getProperties()
Returns an unmodifiable map of version properties.

Returns:

getProperty

public String getProperty(String name)
Returns the value for the given property name.

Parameters:
name - - The name of the property.
Returns:
The property value or null if the property is not set.

toString

public String toString()
Returns the version information as a string.

Overrides:
toString in class Object
Returns:
Basic information as a string.


Copyright © 2011. All Rights Reserved.