add spring configuration logging
authorwnorris <wnorris@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 19 Jun 2007 22:15:08 +0000 (22:15 +0000)
committerwnorris <wnorris@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 19 Jun 2007 22:15:08 +0000 (22:15 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2257 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/config/profile/AbstractAuthenticationHandlerBeanDefinitionParser.java
src/edu/internet2/middleware/shibboleth/idp/config/profile/AbstractSAMLProfileHandlerBeanDefinitionParser.java

index dbf0e6e..3ece8d9 100644 (file)
@@ -36,7 +36,10 @@ public abstract class AbstractAuthenticationHandlerBeanDefinitionParser extends
 
     /** {@inheritDoc} */
     protected void doParse(Element config, BeanDefinitionBuilder builder) {
 
     /** {@inheritDoc} */
     protected void doParse(Element config, BeanDefinitionBuilder builder) {
-
+        if (log.isInfoEnabled()) {
+            log.info("Parsing configuration for " + config.getLocalName() + " authentication handler.");
+        }
+        
         int duration = Integer.parseInt(config.getAttributeNS(null, "authenticationDuration"));
         if (log.isDebugEnabled()) {
             log.debug("Authentication handler declared duration of " + duration + " minutes");
         int duration = Integer.parseInt(config.getAttributeNS(null, "authenticationDuration"));
         if (log.isDebugEnabled()) {
             log.debug("Authentication handler declared duration of " + duration + " minutes");
index 8fb2588..e764bdc 100644 (file)
@@ -16,6 +16,7 @@
 
 package edu.internet2.middleware.shibboleth.idp.config.profile;
 
 
 package edu.internet2.middleware.shibboleth.idp.config.profile;
 
+import org.apache.log4j.Logger;
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 import org.w3c.dom.Element;
 
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 import org.w3c.dom.Element;
 
@@ -27,14 +28,22 @@ import edu.internet2.middleware.shibboleth.common.config.profile.AbstractShibbol
 public abstract class AbstractSAMLProfileHandlerBeanDefinitionParser extends
         AbstractShibbolethProfileHandlerBeanDefinitionParser {
 
 public abstract class AbstractSAMLProfileHandlerBeanDefinitionParser extends
         AbstractShibbolethProfileHandlerBeanDefinitionParser {
 
+    /** Class loggger. */
+    private static Logger log = Logger.getLogger(AbstractSAMLProfileHandlerBeanDefinitionParser.class);
+
     /** {@inheritDoc} */
     protected void doParse(Element config, BeanDefinitionBuilder builder) {
     /** {@inheritDoc} */
     protected void doParse(Element config, BeanDefinitionBuilder builder) {
+        if (log.isInfoEnabled()) {
+            log.info("Parsing configuration for " + config.getLocalName() + " SAML profile handler.");
+        }
         super.doParse(config, builder);
 
         super.doParse(config, builder);
 
-        builder.addPropertyReference("messageDecoderFactory", config.getAttributeNS(null, "messageDecoderFactoryId"));
+        builder.addPropertyReference("messageDecoderFactory", config.getAttributeNS(null,
+                "messageDecoderFactoryId"));
+
+        builder.addPropertyReference("messageEncoderFactory", config.getAttributeNS(null,
+                "messageEncoderFactoryId"));
 
 
-        builder.addPropertyReference("messageEncoderFactory", config.getAttributeNS(null, "messageEncoderFactoryId"));
-        
         builder.addPropertyReference("idGenerator", config.getAttributeNS(null, "idGeneratorId"));
     }
 }
\ No newline at end of file
         builder.addPropertyReference("idGenerator", config.getAttributeNS(null, "idGeneratorId"));
     }
 }
\ No newline at end of file