| java.lang.Object | ||
| ↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
| ↳ | com.microstrategy.web.app.WebBeanInfo | |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ATT_BEAN_CLASS | ||||||||||
| String | ATT_BEAN_CONSTRUCTOR | ||||||||||
| String | ATT_BEAN_TYPE | ||||||||||
| String | ATT_EVENT_HANDLER | ||||||||||
| String | ATT_FACTORY_CLASS | ||||||||||
| String | ATT_FACTORY_CONSTRUCTOR | ||||||||||
| String | ATT_FEATURE_ID | ||||||||||
| String | ATT_NAME | ||||||||||
| String | ATT_PERSIST_MODE | ||||||||||
| String | ATT_SESSION | ||||||||||
| String | ATT_SYS_BEAN | ||||||||||
| String | NODE_WEB_BEAN | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.utils.config.AbstractConfigurationElement
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
WebBeanInfo()
Class constructor.
| |||||||||||
|
WebBeanInfo(String name)
Class constructor.
| |||||||||||
|
WebBeanInfo(Node root)
Class constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| WebComponent |
createBeanInstance()
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
| ||||||||||
| String |
getBeanClass()
Get the name of the bean class for the WebBeanInfo instance
| ||||||||||
| String |
getBeanConstructor()
Get the name of the bean constructor for the WebBeanInfo instance
| ||||||||||
| static WebBeanInfo | getBeanInfo(WebComponent component, AppContext context) | ||||||||||
| WebComponent |
getBeanInstance(AppContext appContext, ComponentInitializationContext initContext)
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
| ||||||||||
| WebComponent |
getBeanInstance(AppContext appContext)
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
| ||||||||||
| WebBeanStyleList |
getBeanStyleList()
Get the collection of bean styles for the WebBeanInfo instance
| ||||||||||
| WebBeanInfoList |
getChildrenBeans()
Get the WebBeanInfoList of WebBeans children of this bean
| ||||||||||
| int |
getConfigType()
This method is deprecated.
With the introduction of the centralized
BeanFactory class, bean configuration
type distinctions are no longer relevant.
| ||||||||||
| String |
getEventHandler()
Get the event handler for this WebBeanInfo instance
| ||||||||||
| EventHandlerList |
getEventHandlerList()
Get the collection of bean event handlers for the WebBeanInfo instance
| ||||||||||
| String |
getFactoryClass()
Get the name of the factory class for the WebBeanInfo instance
| ||||||||||
| String |
getFactoryConstructor()
Get the name of the factory constructor for the WebBeanInfo instance
| ||||||||||
| String |
getFeatureId()
Get the feature Id associated with this page.
| ||||||||||
| WebBeanPropertyList |
getInitPropertyList()
Get the collection of bean init-properties for the WebBeanInfo instance.
| ||||||||||
| String |
getName()
Get the name of the WebBeanInfo instance
| ||||||||||
| int |
getPersistMode()
Get the persist mode of this WebBeanInfo instance
| ||||||||||
| WebBeanPropertyList |
getRequestPropertyList()
Get the collection of bean request-properties for the WebBeanInfo instance.
| ||||||||||
| String |
getSessionName()
Get the session name for this WebBeanInfo instance
| ||||||||||
| int |
getSysBean()
This method is deprecated.
Use
getSysBeanName() instead. With the introduction
of the centralized BeanFactory class, the String type name is now
the recommended way to refer to a bean's type.
| ||||||||||
| String | getSysBeanName() | ||||||||||
| void | initBeanInstance(AppContext appContext, WebComponent beanInstance, ComponentInitializationContext initContext) | ||||||||||
| void |
setBeanClass(String beanClass)
Set the name of the bean class for the WebBeanInfo instance
| ||||||||||
| void |
setBeanConstructor(String beanConstructor)
Set the name of the bean constructor for the WebBeanInfo instance
| ||||||||||
| void |
setBeanProperties(WebComponent beanInstance, WebBeanPropertyList properties, AppContext appContext)
Set the properties of the bean instance given the parameters available on the RequestKeys.
| ||||||||||
| void |
setBeanStyles(Object beanInstance, AppContext appContext)
Set the styles of the bean instance given the parameters available on the RequestKeys.
| ||||||||||
| void |
setConfigType(int configType)
This method is deprecated.
With the introduction of the centralized
BeanFactory class, bean configuration
type distinctions are no longer relevant.
| ||||||||||
| void |
setEventHandler(String eventHandler)
Set the event handler for this WebBeanInfo instance
| ||||||||||
| void |
setFactoryClass(String factoryClass)
Set the name of the factory class for the WebBeanInfo instance
| ||||||||||
| void |
setFactoryConstructor(String factoryConstructor)
Set the name of the factory constructor for the WebBeanInfo instance
| ||||||||||
| void |
setFeatureId(String featureId)
Sets the name of the class for the event handler of this page.
| ||||||||||
| void |
setName(String name)
Set the name of the WebBeanInfo instance
| ||||||||||
| void |
setPersistMode(int persistMode)
Set the persist mode of this WebBeanInfo instance
| ||||||||||
| void |
setSessionName(String session)
Set the session name for this WebBeanInfo instance
| ||||||||||
| void |
setSysBean(int sysBean)
This method is deprecated.
Use
setSysBeanName(String) instead. With the introduction
of the centralized BeanFactory class, the String type name is now
the recommended way to refer to a bean's type.
| ||||||||||
| void | setSysBeanName(String value) | ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String |
getKeyAttribute()
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the
getKey and
setKey methods. | ||||||||||
| void |
initDefaultAttributes()
This method can be overridden to set default values for attributes.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.utils.config.AbstractConfigurationElement
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.utils.config.ConfigurationElement
| |||||||||||
From interface
com.microstrategy.utils.config.ConfigurationFile
| |||||||||||
Class constructor. Initializes a new -empty- instance of the WebBeanInfo class.
Class constructor. Initializes a new instance of the WebBeanProperty with the values passed as parameters
| name | String name of the bean.
|
|---|
Class constructor. Initializes a WebBeanInfo instance based on the information included on the XML Node
| root | Node instance representing the web bean information. |
|---|
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
This bean gets created and the corresponding event handler is set.
If values are not specified, default values are used.
Get the name of the bean class for the WebBeanInfo instance
String name of the bean class
Get the name of the bean constructor for the WebBeanInfo instance
String name of the bean constructor
| component | WebComponent instance to be used for searching
its corresponding WebBeanInfo instance |
|---|---|
| context | AppContext initialized instance |
WebBeanInfo instance corresponding to the
WebComponent argumentGet the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
This method returns an instance of the bean by creating it from the BeanFactory, or from the classes specified in the config file.
This bean gets initialized its properties, session and eventHandler based again, on the properties in the config file.
If values are not specified, default values are used.
| appContext | AppContext instance |
|---|---|
| initContext | the ComponentInitializationContext object with
initialization information the beans will require to initialize |
WebComponent instance of the bean initialized| WebAppException | if an error is generated while initializing the bean |
|---|
Get the WebComponent corresponding to the information available on this WebBeanInfo instance and initialize it.
This method returns an instance of the bean by creating it from the BeanFactory, or from the classes specified in the config file.
This bean gets initialized its properties, session and eventHandler based again, on the properties in the config file.
If values are not specified, default values are used.
| appContext | AppContext instance |
|---|
WebComponent instance of the bean initialized| WebAppException | if an error is generated while initializing the bean |
|---|
Get the collection of bean styles for the WebBeanInfo instance
WebBeanStyleList associated with this WebBeanInfo
Get the WebBeanInfoList of WebBeans children of this bean
This method is deprecated.
With the introduction of the centralized
BeanFactory class, bean configuration
type distinctions are no longer relevant.
Get the corresponding configuration type of this bean
Get the event handler for this WebBeanInfo instance
String value of the event handler property of this WebBeanInfo
Get the collection of bean event handlers for the WebBeanInfo instance
EventHandlerList associated with this WebBeanInfoGet the name of the factory class for the WebBeanInfo instance
String name of the factory class for the bean
Get the name of the factory constructor for the WebBeanInfo instance
String name of the factory constructor for the bean
Get the feature Id associated with this page. The feature Id controls whether the page is visible or not depending on user privileges and application settings.
Get the collection of bean init-properties for the WebBeanInfo instance. This properties are applied to a bean instance when the beans gets initialized.
WebBeanPropertyList associated with this WebBeanInfo
Get the name of the WebBeanInfo instance
String value of the name property
Get the persist mode of this WebBeanInfo instance
boolean value of the persist property of this WebBeanInfo
Get the collection of bean request-properties for the WebBeanInfo instance. This properties are applied to a bean instance when the request is handled.
WebBeanPropertyList associated with this WebBeanInfo
Get the session name for this WebBeanInfo instance
String name of the session this bean will use when executing
This method is deprecated.
Use getSysBeanName() instead. With the introduction
of the centralized BeanFactory class, the String type name is now
the recommended way to refer to a bean's type.
Get the sysBean property value of the WebBeanInfo instance
int value of the sysBean property| WebAppException |
|---|
Set the name of the bean class for the WebBeanInfo instance
| beanClass | String name of the bean class
|
|---|
Set the name of the bean constructor for the WebBeanInfo instance
| beanConstructor | String name of the bean constructor
|
|---|
Set the properties of the bean instance given the parameters available on the RequestKeys.
| beanInstance | instance of the bean to be initialized |
|---|---|
| properties | WebBeanPropertyList object witht he information about the bean's properties to set |
| appContext | AppContext instance.
|
Set the styles of the bean instance given the parameters available on the RequestKeys.
| beanInstance | instance of the bean to be initialized |
|---|---|
| appContext | AppContext instance |
| WebAppException | if an error is generated while initializing the bean |
|---|
This method is deprecated.
With the introduction of the centralized
BeanFactory class, bean configuration
type distinctions are no longer relevant.
Sets the corresponding configuration type of this bean
| configType | the configuration type from EnumWebConfigBeanType |
|---|
Set the event handler for this WebBeanInfo instance
| eventHandler | String value of the event handler property of this WebBeanInfo
|
|---|
Set the name of the factory class for the WebBeanInfo instance
| factoryClass | String name of the factory class for the bean
|
|---|
Set the name of the factory constructor for the WebBeanInfo instance
| factoryConstructor | String name of the factory constructor for the bean
|
|---|
Sets the name of the class for the event handler of this page.
| featureId | the feature Id associated with this page. |
|---|
Set the name of the WebBeanInfo instance
| name | the String value of the name property - unique
identifier of the WebBeanInfo instance.
|
|---|
Set the persist mode of this WebBeanInfo instance
| persistMode | boolean value of the persist property of this WebBeanInfo
|
|---|
Set the session name for this WebBeanInfo instance
| session | String name of the session this bean will use when executing
|
|---|
This method is deprecated.
Use setSysBeanName(String) instead. With the introduction
of the centralized BeanFactory class, the String type name is now
the recommended way to refer to a bean's type.
Set the sysBean property value of the WebBeanInfo instance
| sysBean | the int value of the sysBean property |
|---|
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the getKey and
setKey methods.
This method can be overridden to set default values for attributes. Simply
extend this method and call setAttribute(String, Object)