Package com.microstrategy.web.app
Class ComponentInitializationContextImpl
- java.lang.Object
-
- com.microstrategy.web.app.ComponentInitializationContextImpl
-
- All Implemented Interfaces:
ComponentInitializationContext
public class ComponentInitializationContextImpl extends java.lang.Object implements ComponentInitializationContext
This class implements theComponentInitializationContext
interface.- Since:
- MicroStrategy Web 8.0.0
-
-
Constructor Summary
Constructors Constructor Description ComponentInitializationContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsComponent(java.lang.String name, java.lang.String beanType)
This method returns true if a bean with the given name and type has already beencreated.WebComponent
getComponent(java.lang.String name, java.lang.String beanType)
Returns a webComponent if it has been created previously and matches both name and type; null if the bean is not found.void
storeComponent(WebComponent webComponent, java.lang.String beanType)
This method stores in the context object a WebComponent instance.
-
-
-
Method Detail
-
containsComponent
public boolean containsComponent(java.lang.String name, java.lang.String beanType)
This method returns true if a bean with the given name and type has already beencreated.- Specified by:
containsComponent
in interfaceComponentInitializationContext
- Parameters:
name
- The name given to the beanbeanType
- The bean's type name (ex: "ReportBean").- Returns:
- boolean true if the bean exists.
- Since:
- MicroStrategy Web 9.0.0
-
getComponent
public WebComponent getComponent(java.lang.String name, java.lang.String beanType)
Returns a webComponent if it has been created previously and matches both name and type; null if the bean is not found.- Specified by:
getComponent
in interfaceComponentInitializationContext
- Parameters:
name
- The name given to the beanbeanType
- The bean's type name (ex: "ReportBean").- Returns:
- a
WebComponent
instance if the bean exists. - Since:
- MicroStrategy Web 9.0.0
-
storeComponent
public void storeComponent(WebComponent webComponent, java.lang.String beanType)
This method stores in the context object a WebComponent instance.- Specified by:
storeComponent
in interfaceComponentInitializationContext
- Parameters:
webComponent
- theWebComponent
instance to store.beanType
- The bean's type name (ex: "ReportBean").- Since:
- MicroStrategy Web 9.0.0
-
-