Class ContextImpl

java.lang.Object
com.github.fungal.impl.ContextImpl
All Implemented Interfaces:
Context

public class ContextImpl extends Object implements Context
Context implementation for a deployment.
Author:
Jesper Pedersen
  • Method Details

    • getKernel

      public Kernel getKernel()
      Get the kernel instance for the deployment
      Specified by:
      getKernel in interface Context
      Returns:
      The instance
    • exists

      public boolean exists(Object key)
      Exists
      Specified by:
      exists in interface Context
      Parameters:
      key - The key of the resource
      Returns:
      True if the key/value pair exists; otherwise false
    • put

      public Object put(Object key, Object value)
      Put
      Specified by:
      put in interface Context
      Parameters:
      key - The key of the resource
      value - The value of the resource
      Returns:
      The previous value for the key
    • get

      public Object get(Object key)
      Get
      Specified by:
      get in interface Context
      Parameters:
      key - The key of the resource
      Returns:
      The value of the resource
    • remove

      public Object remove(Object key)
      Remove
      Specified by:
      remove in interface Context
      Parameters:
      key - The key of the resource
      Returns:
      The value of the resource
    • clear

      public void clear()
      Clear