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 theComponentInitializationContextinterface.- 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 booleancontainsComponent(java.lang.String name, java.lang.String beanType)This method returns true if a bean with the given name and type has already beencreated.WebComponentgetComponent(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.voidstoreComponent(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:
containsComponentin 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:
getComponentin interfaceComponentInitializationContext- Parameters:
name- The name given to the beanbeanType- The bean's type name (ex: "ReportBean").- Returns:
- a
WebComponentinstance 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:
storeComponentin interfaceComponentInitializationContext- Parameters:
webComponent- theWebComponentinstance to store.beanType- The bean's type name (ex: "ReportBean").- Since:
- MicroStrategy Web 9.0.0
-
-