Package com.microstrategy.web.app
Interface ComponentInitializationContext
-
- All Known Implementing Classes:
ComponentInitializationContextImpl
public interface ComponentInitializationContextThis interface defines a way that the application can save components between the request boundaries.- Since:
- MicroStrategy Web 8.0.0
-
-
Method Summary
All Methods Instance Methods Abstract 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 been created.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 intance.
-
-
-
Method Detail
-
containsComponent
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 been created.- 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
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.- 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
void storeComponent(WebComponent webComponent, java.lang.String beanType)
This method stores in the context object a WebComponent intance.- Parameters:
webComponent- theWebComponentinstance to store.beanType- The bean's type name (ex: "ReportBean").- Since:
- MicroStrategy Web 9.0.0
-
-