/*
* $Id: ImapNamespaceHandler.java 20802 2010-12-20 06:31:09Z dirk.olmes $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.transport.email.config;
import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
import org.mule.config.spring.parsers.MuleDefinitionParserConfiguration;
import org.mule.endpoint.URIBuilder;
import org.mule.transport.email.ImapConnector;
/**
* Registers a Bean Definition Parser for handling <code><imap:connector></code> elements.
*
*/
public class ImapNamespaceHandler extends AbstractMuleNamespaceHandler
{
public void init()
{
registerStandardTransportEndpoints(ImapConnector.IMAP, URIBuilder.USERHOST_ATTRIBUTES);
MuleDefinitionParserConfiguration parser = registerConnectorDefinitionParser(ImapConnector.class);
parser.addMapping("defaultProcessMessageAction", EmailNamespaceHandler.DEFAULT_PROCESS_MESSAGE_ACTION);
}
}