Package com.aquima.web.config
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:
- for a specific project
- all applications
get(ApplicationID)
method, e.g. the most specific object.- Since:
- 8.0
- Author:
- Danny Roest
-
-
Constructor Summary
Constructors Constructor Description ApplicationObjectStore(String name)
Constructs a new store for application objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T object, String projectName)
Adds an object to the store.T
get(com.aquima.interactions.foundation.ApplicationID applicationId)
This method returns the most specific object for the specified application id.
-
-
-
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 storeprojectName
- 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.
-
-