public class LogSpringContextInfo extends AbstractProfileAction implements org.springframework.context.ApplicationContextAware
ApplicationContext and the beans contained within each.
You can contextualize the logging of the info either by setting setDescription(String),
or more usefully by using an attribute on the specific action expression as below. This allows using
just one declaration of the action bean, but parameterized differently depending on where it is placed.
<evaluate expression="LogSpringContextInfo">
<attribute name="springInfoDescription" value="My Description" />
</evaluate>
| Modifier and Type | Field and Description |
|---|---|
private org.springframework.context.ApplicationContext |
applicationContext
The owning Spring ApplicationContext in which this action is defined.
|
static String |
ATTRIB_DESC
Name of Spring web flow attribute holding the description of the tree to log.
|
private String |
description
Contextual description to output at the start of the action.
|
private org.slf4j.Logger |
log
Logger.
|
| Constructor and Description |
|---|
LogSpringContextInfo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setDescription(String value)
Set the contextual description to output at the start of the action.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategydoPreExecute, getActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitializedpublic static final String ATTRIB_DESC
private org.slf4j.Logger log
private org.springframework.context.ApplicationContext applicationContext
private String description
public void setDescription(@Nullable String value)
value - the description valuepublic void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected void doExecute(ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.