add spring configuration logging
[java-idp.git] / src / edu / internet2 / middleware / shibboleth / idp / config / profile / AbstractSAMLProfileHandlerBeanDefinitionParser.java
index 9fdeec8..e764bdc 100644 (file)
 
 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 edu.internet2.middleware.shibboleth.common.config.profile.AbstractProfileHandlerBeanDefinitionParser;
+import edu.internet2.middleware.shibboleth.common.config.profile.AbstractShibbolethProfileHandlerBeanDefinitionParser;
 
 /**
  * Base class for SAML profile handler configuration parsers.
  */
 public abstract class AbstractSAMLProfileHandlerBeanDefinitionParser extends
-        AbstractProfileHandlerBeanDefinitionParser {
+        AbstractShibbolethProfileHandlerBeanDefinitionParser {
+
+    /** Class loggger. */
+    private static Logger log = Logger.getLogger(AbstractSAMLProfileHandlerBeanDefinitionParser.class);
 
     /** {@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);
 
-        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