java.lang.Object | |
↳ | com.microstrategy.web.beans.BeanContextImpl |
![]() |
The BeanContext
. Web applications are encouraged to
extend this class to provide its own application specific context object.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected ContainerServices | _containerServices | ||||||||||
protected WebSessionManager | _newSessionMgr |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BeanContextImpl()
The default constructor for
BeanContextImpl . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ContainerServices |
getContainerServices()
This method gets the Container Services object associated with this application context.
| ||||||||||
EventHandlersCatalog |
getEventHandlersCatalog()
Returns the
EventHandlersCatalog instance associated with this bean context. | ||||||||||
WebFeatures |
getFeatures()
This method gets the WebFeatures object associated with this application context.
| ||||||||||
Messages |
getMessages()
Returns the
Messages instance from this BeanContext. | ||||||||||
MessagesManager |
getMessagesManager()
Returns the
MessagesManager instance associated with this bean context. | ||||||||||
RequestKeys |
getRequestKeys()
This method gets the Request Keys object associated with this application context.
| ||||||||||
String |
getServletPath()
Get the full application path to the Servlet.
| ||||||||||
StyleCatalog |
getStyleCatalog()
Returns the
StyleCatalog instance associated with this bean context. | ||||||||||
WebSessionManager |
getWebSessionManager()
This method returns the Application Session Manager associated with this application context.
| ||||||||||
void |
setContainerServices(ContainerServices cs)
This method sets the Container Services object associated with this application context.
| ||||||||||
void |
setEventHandlersCatalog(EventHandlersCatalog catalog)
Sets the
EventHandlersCatalog instances associated with the
current BeanContext. | ||||||||||
void |
setFeatures(WebFeatures features)
This method sets the WebFeatures object associated with this
application context.
| ||||||||||
void |
setMessages(Messages msgs)
Sets a
Messages instance to this BeanContext. | ||||||||||
void |
setMessagesManager(MessagesManager msgsMgr)
Sets an instance of
MessagesManager on the current BeanContext. | ||||||||||
void |
setRequestKeys(RequestKeys requestKeys)
This method sets the Request Keys object to be associated with this application context.
| ||||||||||
void |
setStyleCatalog(StyleCatalog sc)
Sets an instance of
StyleCatalog on the current BeanContext. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getEventHandlersCatalogPath()
Returns the path to use for the EventHandlersCatalog file.
| ||||||||||
String |
getMessagesManagerPath()
Returns the path to use for the MessagesManager (locales) file.
| ||||||||||
String |
getStyleCatalogPath()
Returns the path to use for the StyleCatalog file.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The default constructor for BeanContextImpl
.
This method gets the Container Services object associated with this application context.
Returns the EventHandlersCatalog
instance associated with this bean context. If no
EventHandlersCatalog has been explicitly associated, it will automatically used the one specified
by the getEventHandlersCatalogPath()
method.
EventHandlersCatalog
.This method gets the WebFeatures object associated with this application context.
Returns the Messages
instance from this BeanContext.
This method does not contact the MessagesManager
object associated
with this BeanContext
.
Returns the MessagesManager
instance associated with this bean context. If no
MessagesManager has been explicitly associated, it will automatically used the one specified
by the getMessagesManagerPath()
method.
MessagesManager
.
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 the StyleCatalog
instance associated with this bean context. If no
StyleCatalog has been explicitly associated, it will automatically used the one specified
by the getStyleCatalogPath()
method.
StyleCatalog
.
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 WebFeatures object associated with this application context.
features | A WebFeatures object.
|
---|
Sets a Messages
instance to this BeanContext.
This method does not contact the MessagesManager
object associated
with 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.
requestKeys | An instance of an RequestKeys object. |
---|
Sets an instance of StyleCatalog
on the current BeanContext.
sc | an instance of StyleCatalog to set.
|
---|
Returns the path to use for the EventHandlersCatalog file. This is only used if a EventHandlersCatalog has not
been explicitly set through the setEventHandlersCatalog(EventHandlersCatalog)
. By default it returns an empty string.
Other bean context can override this method to provide a different location.
Returns the path to use for the MessagesManager (locales) file. This is only used if a MessagesManager has not
been explicitly set through the setMessagesManager(MessagesManager)
.
Returns the path to use for the StyleCatalog file. This is only used if a StyleCatalog has not
been explicitly set through the setStyleCatalog(StyleCatalog)
.