org.glite.data.common.helpers
Class ServiceImpl

java.lang.Object
  extended byorg.glite.data.common.helpers.ServiceImpl

public class ServiceImpl
extends java.lang.Object

Provides implementation for the base Service interface, using the version.properties file, loaded from the classpath.

Author:
Akos Frohner

Field Summary
protected static java.util.Properties props
          The singleton object.
protected static java.lang.String VERSION_PROPERTIES_FILE
          The name of the version file for the services.
 
Constructor Summary
protected ServiceImpl()
           
 
Method Summary
 java.lang.String getInterfaceVersion()
           
protected static java.lang.String getProperty(java.lang.String key)
          Returns the value of the given property, or null if there is no such property.
 java.lang.String getSchemaVersion()
           
 java.lang.String getServiceMetadata(java.lang.String key)
           
 java.lang.String getVersion()
           
protected static void InitProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_PROPERTIES_FILE

protected static final java.lang.String VERSION_PROPERTIES_FILE
The name of the version file for the services.

See Also:
Constant Field Values

props

protected static java.util.Properties props
The singleton object.

Constructor Detail

ServiceImpl

protected ServiceImpl()
Method Detail

InitProperties

protected static void InitProperties()

getProperty

protected static java.lang.String getProperty(java.lang.String key)
Returns the value of the given property, or null if there is no such property.


getVersion

public java.lang.String getVersion()

getInterfaceVersion

public java.lang.String getInterfaceVersion()

getSchemaVersion

public java.lang.String getSchemaVersion()

getServiceMetadata

public java.lang.String getServiceMetadata(java.lang.String key)