Package net.shibboleth.idp.profile.impl
Class LogSpringContextInfo
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.idp.profile.impl.LogSpringContextInfo
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,ApplicationContextAware,MessageSource,MessageSourceAware,Action
Spring Web Flow utility action for logging on DEBUG details about the current hierarchy of
Spring
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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ApplicationContextThe owning Spring ApplicationContext in which this action is defined.static final StringName of Spring web flow attribute holding the description of the tree to log.private StringContextual description to output at the start of the action.private org.slf4j.LoggerLogger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) voidsetApplicationContext(ApplicationContext context) voidsetDescription(String value) Set the contextual description to output at the start of the action.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
ATTRIB_DESC
Name of Spring web flow attribute holding the description of the tree to log.- See Also:
-
log
@Nonnull private org.slf4j.Logger logLogger. -
applicationContext
The owning Spring ApplicationContext in which this action is defined. -
description
Contextual description to output at the start of the action.
-
-
Constructor Details
-
LogSpringContextInfo
public LogSpringContextInfo()
-
-
Method Details
-
setDescription
Set the contextual description to output at the start of the action.- Parameters:
value- the description value
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-