org.mobicents.media.server.impl
Class Version

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

public final class Version
extends java.lang.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
 java.util.Map getProperties()
          Returns an unmodifiable map of version properties.
 java.lang.String getProperty(java.lang.String name)
          Returns the value for the given property name.
 java.lang.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 java.util.Map getProperties()
Returns an unmodifiable map of version properties.

Returns:

getProperty

public java.lang.String getProperty(java.lang.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 java.lang.String toString()
Returns the version information as a string.

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


Copyright © 2010. All Rights Reserved.