|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.portlet.context.PortletApplicationObjectSupport
public abstract class PortletApplicationObjectSupport
Convenient superclass for application objects running in a Portlet ApplicationContext. Provides getApplicationContext, getServletContext, and getTempDir methods.
| Field Summary |
|---|
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
PortletApplicationObjectSupport()
|
|
| Method Summary | |
|---|---|
protected PortletContext |
getPortletContext()
Return the current PortletContext. |
protected File |
getTempDir()
Return the temporary directory for the current web application, as provided by the servlet container. |
protected boolean |
isContextRequired()
Overrides the base class behavior to enforce running in an ApplicationContext. |
void |
setPortletContext(PortletContext portletContext)
Set the PortletContext that this object runs in. |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletApplicationObjectSupport()
| Method Detail |
|---|
public void setPortletContext(PortletContext portletContext)
PortletContextAwareInvoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked after ApplicationContextAware's setApplicationContext.
setPortletContext in interface PortletContextAwareportletContext - PortletContext object to be used by this objectprotected boolean isContextRequired()
isContextRequired in class ApplicationObjectSupportApplicationObjectSupport.getApplicationContext(),
ApplicationObjectSupport.getMessageSourceAccessor(),
getPortletContext(),
getTempDir()
protected final PortletContext getPortletContext()
throws IllegalStateException
IllegalStateException - if not running within a PortletContext
protected final File getTempDir()
throws IllegalStateException
IllegalStateException - if not running within a PortletContextPortletUtils.getTempDir(javax.portlet.PortletContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||