Class 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 Detail

      • 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 Detail

      • 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.