org.gcube.vremanagement.resourcemanager.impl.contexts
Class ServiceContext

java.lang.Object
  extended by GCUBEServiceContext
      extended by org.gcube.vremanagement.resourcemanager.impl.contexts.ServiceContext

public class ServiceContext
extends GCUBEServiceContext

ResourceManager service context implementation

Author:
Manuele Simi (ISTI-CNR)

Nested Class Summary
static class ServiceContext.IllegalServiceScopeException
          IllegalServiceScopeException exception
 
Constructor Summary
ServiceContext()
           
 
Method Summary
 java.lang.String getConfigurationFileAbsolutePath(java.lang.String relativepath)
          Given a relative path in the /etc folder of the service, returns its absolute path
static ServiceContext getContext()
          Gets the current service context
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContext

public ServiceContext()
Method Detail

getContext

public static ServiceContext getContext()
Gets the current service context

Returns:
the service context

getConfigurationFileAbsolutePath

public java.lang.String getConfigurationFileAbsolutePath(java.lang.String relativepath)
Given a relative path in the /etc folder of the service, returns its absolute path

Parameters:
path - a relative path to a configuration file or folder
Returns:
the absolute path of the file