org.gcube.contentmanagement.contentmanager.context
Class ServiceContext

java.lang.Object
  extended by GCUBEServiceContext
      extended by org.gcube.contentmanagement.contentmanager.context.ServiceContext

public class ServiceContext
extends GCUBEServiceContext


Method Summary
static ServiceContext getContext()
          Returns cached instance
 javax.xml.bind.JAXBContext getDataBinder()
          Returns the data binder.
 PluginManager getPluginManager()
          
 java.lang.Thread newServiceThread(java.lang.Runnable r)
          Returns a thread that embeds a given Runnable inherits the scope and security setting of the current one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContext

public static ServiceContext getContext()
Returns cached instance


getPluginManager

public PluginManager getPluginManager()


getDataBinder

public javax.xml.bind.JAXBContext getDataBinder()
                                         throws java.lang.Exception
Returns the data binder.

Returns:
the binder.
Throws:
java.lang.Exception - if the binder could not be returned;

newServiceThread

public java.lang.Thread newServiceThread(java.lang.Runnable r)
Returns a thread that embeds a given Runnable inherits the scope and security setting of the current one.

Parameters:
the - runnable task.
Returns:
the thread.