Package com.microstrategy.utils
Class ObjectRegistry
- java.lang.Object
-
- com.microstrategy.utils.ObjectRegistry
-
public class ObjectRegistry extends java.lang.ObjectThis 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.StringOBJREGKEY_CERTIFICATE_PROVIDERstatic java.lang.StringOBJREGKEY_EXPORT_PLAINTEXT_DELIMITERSList of delimiters for both export and subscriptionsstatic java.lang.StringOBJREGKEY_MOBILE_CONTROLLERstatic java.lang.StringOBJREGKEY_RESOURCE_FEED_CONTROLLERstatic java.lang.StringOBJREGKEY_TASK_ADMIN_CONTROLLERThis is the key that is used to identify the AppController instance for the Task administrator application.static java.lang.StringOBJREGKEY_TASK_PROCESSOR_CONTROLLERThis is the key that is used to identify the AppController instance for the Task processor application.static java.lang.StringOBJREGKEY_TASK_VIEWER_CONTROLLERThis is the key that is used to identify the AppController instance for the Task viewer application.static java.lang.StringOBJREGKEY_VISUALIZATIONSList of visualizationsstatic java.lang.StringOBJREGKEY_WEB_UNIVERSAL_CONTROLLERThis 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 voidbind(java.lang.String name, java.lang.Object object)Binds an object instance to a name.voiddestroy()Destroy the HashSet and other caches, will be called when destroying the sevletstatic ObjectRegistrygetInstance()Returns the single instance of this class for use.java.lang.Objectlookup(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
ObjectRegistrythat you can use to lookup and bind objects.
-
bind
public void bind(java.lang.String name, java.lang.Object object) throws java.lang.IllegalArgumentExceptionBinds 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.IllegalArgumentExceptionLooks up an object in our Registry. If not found, thennullis returned.- Parameters:
name- The name of the object to search for.- Returns:
- The value of the object with that name, or
nullif 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
-
-