public interface

ComponentInitializationContext

com.microstrategy.web.app.ComponentInitializationContext
Known Indirect Subclasses

Class Overview

This interface defines a way that the application can save components between the request boundaries.

Summary

Public Methods
abstract boolean containsComponent(String name, String beanType)
This method returns true if a bean with the given name and type has already been created.
abstract WebComponent getComponent(String name, String beanType)
Returns a WebComponent if it has been created previously and matches both name and type; null if the bean is not found.
abstract void storeComponent(WebComponent webComponent, String beanType)
This method stores in the context object a WebComponent intance.

Public Methods

public abstract boolean containsComponent (String name, 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 bean
beanType The bean's type name (ex: "ReportBean").
Returns
  • boolean true if the bean exists.

public abstract WebComponent getComponent (String name, 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 bean
beanType The bean's type name (ex: "ReportBean").
Returns

public abstract void storeComponent (WebComponent webComponent, String beanType)

This method stores in the context object a WebComponent intance.

Parameters
webComponent the WebComponent instance to store.
beanType The bean's type name (ex: "ReportBean").