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
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
ConstructorsConstructorDescriptionApplicationObjectStore
(String name) Constructs a new store for application objects. -
Method Summary
-
Constructor Details
-
ApplicationObjectStore
Constructs a new store for application objects.- Parameters:
name
- the name describing the objects that are put in this store.
-
-
Method Details
-
add
Adds an object to the store.- Parameters:
object
- the object to storeprojectName
- optional project name
-
get
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.
-