Class ApplicationObjectStore<T>

java.lang.Object
com.aquima.web.config.ApplicationObjectStore<T>
Type Parameters:
T - the object that is stored

public class ApplicationObjectStore<T> extends Object
This class stores objects for applications. These objects are usually annotated.

An object can defined for be for:

  1. for a specific project
  2. all applications
In the above order the object is retrieved when calling the get(ApplicationID) method, e.g. the most specific object.
Since:
8.0
Author:
Danny Roest
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new store for application objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T object, String projectName)
    Adds an object to the store.
    get(com.aquima.interactions.foundation.ApplicationID applicationId)
    This method returns the most specific object for the specified application id.

    Methods inherited from class java.lang.Object

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

    • ApplicationObjectStore

      public ApplicationObjectStore(String name)
      Constructs a new store for application objects.
      Parameters:
      name - the name describing the objects that are put in this store.
  • Method Details

    • add

      public void add(T object, String projectName)
      Adds an object to the store.
      Parameters:
      object - the object to store
      projectName - optional project name
    • get

      public T get(com.aquima.interactions.foundation.ApplicationID applicationId)
      This method returns the most specific object for the specified application id.
      Parameters:
      applicationId - the id of the application
      Returns:
      the object for this application as defined in the class description.