com.microstrategy.web.beans.BeanContext |
![]() |
The BeanContext
interface provides context information for a
WebComponent
or a Transformable
, such as StyleCatalog
and MessagesManager
etc. A single instance of a
BeanContext
object can be shared with many WebComponent
or Transformable
instances.
A BeanContext
object can be instantiated from WebBeanFactory
.
You can also retrieve a BeanContext
object from a
Transformable
object or a WebComponent
object.
If a web application needs more context information, try to extend this interface
to provide the functionalities required by the web application. For example,
MicroStrategy Web has a AppContext
sub-interface to provide
application WebComponent
more information such as
Preferences
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract ContainerServices |
getContainerServices()
This method gets the Container Services object associated with this application context.
| ||||||||||
abstract EventHandlersCatalog |
getEventHandlersCatalog()
Returns the current instance of
EventHandlersCatalog associated with the
current BeanContext. | ||||||||||
abstract WebFeatures |
getFeatures()
This method gets the Features object associated with this application context.
| ||||||||||
abstract Messages |
getMessages()
Returns the
Messages instance from this BeanContext. | ||||||||||
abstract MessagesManager |
getMessagesManager()
Returns an instance of
MessagesManager associated with the
current BeanContext. | ||||||||||
abstract RequestKeys |
getRequestKeys()
This method gets the Request Keys object associated with this application context.
| ||||||||||
abstract String |
getServletPath()
Get the full application path to the Servlet.
| ||||||||||
abstract StyleCatalog |
getStyleCatalog()
Returns an instance of
StyleCatalog associated with the
current BeanContext. | ||||||||||
abstract WebSessionManager |
getWebSessionManager()
This method returns the Application Session Manager associated with this application context.
| ||||||||||
abstract void |
setContainerServices(ContainerServices cs)
This method sets the Container Services object associated with this application context.
| ||||||||||
abstract void |
setEventHandlersCatalog(EventHandlersCatalog catalog)
Sets the
EventHandlersCatalog instances associated with the
current BeanContext. | ||||||||||
abstract void |
setFeatures(WebFeatures features)
This method sets the Features object associated with this application context.
| ||||||||||
abstract void |
setMessages(Messages msgs)
Sets a
Messages instance to this BeanContext. | ||||||||||
abstract void |
setMessagesManager(MessagesManager msgsMgr)
Sets an instance of
MessagesManager on the current BeanContext. | ||||||||||
abstract void |
setRequestKeys(RequestKeys hrk)
This method sets the Request Keys object to be associated with this application context.
| ||||||||||
abstract void |
setStyleCatalog(StyleCatalog sc)
Sets an instance of
StyleCatalog on the current BeanContext. |
This method gets the Container Services object associated with this application context.
Returns the current instance of EventHandlersCatalog
associated with the
current BeanContext.
This method gets the Features object associated with this application context.
WebFeatures
object
Returns the Messages
instance from this BeanContext.
Returns an instance of MessagesManager
associated with the
current BeanContext.
This method gets the Request Keys object associated with this application context.
Get the full application path to the Servlet. This value is read form the configuration file and if is not set it will be automatically generated from the request.
String
with the servlet path
Returns an instance of StyleCatalog
associated with the
current BeanContext.
This method returns the Application Session Manager associated with this application context.
If not explicitly set through the #setAppSessionManager method, a new one is automatically
created.
This method sets the Container Services object associated with this application context.
cs | A ContainerServices object.
|
---|
Sets the EventHandlersCatalog
instances associated with the
current BeanContext. This catalog is then used by event-handlers to
populate their events list and arguments. It includes for each event-handler,
what are the events, and for each event, what are the argument and the name
of the arguments used. This EventHandlersCatalog
is typically
configured through the "/WEB-INF/xml/config/events.xml" file.
catalog | an instance of EventHandlersCatalog to set. |
---|
This method sets the Features object associated with this application context.
features | A WebFeatures object.
|
---|
Sets a Messages
instance to this BeanContext.
msgs | the Messages instance to set. |
---|
Sets an instance of MessagesManager
on the current BeanContext.
msgsMgr | an instance of MessagesManager to set. |
---|
This method sets the Request Keys object to be associated with this application context.
hrk | An instance of an RequestKeys object.
|
---|
Sets an instance of StyleCatalog
on the current BeanContext.
sc | an instance of StyleCatalog to set. |
---|