Object
SharedObjects

public class SharedObjects extends Object
Objects shared between different components.

This provides a memory between particular processing components, offering a variable state.

Author:
Owen Feehan
  • Constructor Details

    • SharedObjects

      public SharedObjects(CommonContext context)
      Creates a new SharedObjects instance.
      Parameters:
      context - Logger and other common configuration
  • Method Details

    • getOrCreate

      public <T> NamedProviderStore<T> getOrCreate(Class<?> key)
      Gets an existing store, or creates a new one
      Type Parameters:
      T - type of item in store
      Parameters:
      key - unique-identifier for the store
      Returns:
      an existing-store, or a newly-created one
    • getContext

      public CommonContext getContext()
      Logger and other common configuration