Class ContextProvider

java.lang.Object
org.gcube.smartgears.ContextProvider

public class ContextProvider extends Object
Embedded in an application, makes available its context as a gCube resource.
Author:
Fabio Simeoni
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.gcube.smartgears.context.application.ApplicationContext
    get()
    Returns the application context.
    static void
    set(org.gcube.smartgears.context.application.ApplicationContext context)
    Sets the application context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContextProvider

      public ContextProvider()
  • Method Details

    • get

      public static org.gcube.smartgears.context.application.ApplicationContext get()
      Returns the application context.
      Returns:
      the context.
    • set

      public static void set(org.gcube.smartgears.context.application.ApplicationContext context)
      Sets the application context.
      Parameters:
      context - the context;
      Throws:
      IllegalStateException - if the context has not been set because the resource is not managed as a gCube resource