Package com.microstrategy.utils
Class ObjectRegistry
- java.lang.Object
-
- com.microstrategy.utils.ObjectRegistry
-
public class ObjectRegistry extends java.lang.Object
This class represents an in-memory registry of live objects. Its initial use will be to enable sharing of data between different MicroStrategy applications (servlet/controller).- Since:
- MicroStrategy Web 8.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OBJREGKEY_CERTIFICATE_PROVIDER
static java.lang.String
OBJREGKEY_EXPORT_PLAINTEXT_DELIMITERS
List of delimiters for both export and subscriptionsstatic java.lang.String
OBJREGKEY_MOBILE_CONTROLLER
static java.lang.String
OBJREGKEY_RESOURCE_FEED_CONTROLLER
static java.lang.String
OBJREGKEY_TASK_ADMIN_CONTROLLER
This is the key that is used to identify the AppController instance for the Task administrator application.static java.lang.String
OBJREGKEY_TASK_PROCESSOR_CONTROLLER
This is the key that is used to identify the AppController instance for the Task processor application.static java.lang.String
OBJREGKEY_TASK_VIEWER_CONTROLLER
This is the key that is used to identify the AppController instance for the Task viewer application.static java.lang.String
OBJREGKEY_VISUALIZATIONS
List of visualizationsstatic java.lang.String
OBJREGKEY_WEB_UNIVERSAL_CONTROLLER
This is the key that is used to identify the AppController instance for the Web Universal application.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(java.lang.String name, java.lang.Object object)
Binds an object instance to a name.void
destroy()
Destroy the HashSet and other caches, will be called when destroying the sevletstatic ObjectRegistry
getInstance()
Returns the single instance of this class for use.java.lang.Object
lookup(java.lang.String name)
Looks up an object in our Registry.
-
-
-
Field Detail
-
OBJREGKEY_WEB_UNIVERSAL_CONTROLLER
public static final java.lang.String OBJREGKEY_WEB_UNIVERSAL_CONTROLLER
This is the key that is used to identify the AppController instance for the Web Universal application.- See Also:
- Constant Field Values
-
OBJREGKEY_TASK_PROCESSOR_CONTROLLER
public static final java.lang.String OBJREGKEY_TASK_PROCESSOR_CONTROLLER
This is the key that is used to identify the AppController instance for the Task processor application.- See Also:
- Constant Field Values
-
OBJREGKEY_TASK_VIEWER_CONTROLLER
public static final java.lang.String OBJREGKEY_TASK_VIEWER_CONTROLLER
This is the key that is used to identify the AppController instance for the Task viewer application.- See Also:
- Constant Field Values
-
OBJREGKEY_TASK_ADMIN_CONTROLLER
public static final java.lang.String OBJREGKEY_TASK_ADMIN_CONTROLLER
This is the key that is used to identify the AppController instance for the Task administrator application.- See Also:
- Constant Field Values
-
OBJREGKEY_MOBILE_CONTROLLER
public static final java.lang.String OBJREGKEY_MOBILE_CONTROLLER
- Since:
- MicroStrategy Web 8.1.1
- See Also:
- Constant Field Values
-
OBJREGKEY_RESOURCE_FEED_CONTROLLER
public static final java.lang.String OBJREGKEY_RESOURCE_FEED_CONTROLLER
- See Also:
- Constant Field Values
-
OBJREGKEY_CERTIFICATE_PROVIDER
public static final java.lang.String OBJREGKEY_CERTIFICATE_PROVIDER
- See Also:
- Constant Field Values
-
OBJREGKEY_VISUALIZATIONS
public static final java.lang.String OBJREGKEY_VISUALIZATIONS
List of visualizations- See Also:
- Constant Field Values
-
OBJREGKEY_EXPORT_PLAINTEXT_DELIMITERS
public static final java.lang.String OBJREGKEY_EXPORT_PLAINTEXT_DELIMITERS
List of delimiters for both export and subscriptions- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ObjectRegistry getInstance()
Returns the single instance of this class for use.- Returns:
- An instance of
ObjectRegistry
that you can use to lookup and bind objects.
-
bind
public void bind(java.lang.String name, java.lang.Object object) throws java.lang.IllegalArgumentException
Binds an object instance to a name. If the name already exists, this call will overwrite the previous binding.- Parameters:
name
- The name or key to use to associate this object in the registry.object
- The object to store in the registry.- Throws:
java.lang.IllegalArgumentException
- If the name parameter is a null or empty string.
-
lookup
public java.lang.Object lookup(java.lang.String name) throws java.lang.IllegalArgumentException
Looks up an object in our Registry. If not found, thennull
is returned.- Parameters:
name
- The name of the object to search for.- Returns:
- The value of the object with that name, or
null
if there is no association. - Throws:
java.lang.IllegalArgumentException
- If the name parameter is a null or empty string.
-
destroy
public void destroy()
Destroy the HashSet and other caches, will be called when destroying the sevlet
-
-