001/*
002 * (C) Copyright 2006-2007 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
016 *
017 * $Id: TagConfigFactory.java 28460 2008-01-03 15:34:05Z sfermigier $
018 */
019
020package org.nuxeo.ecm.platform.forms.layout.facelets;
021
022import javax.faces.view.facelets.ComponentConfig;
023import javax.faces.view.facelets.ConverterConfig;
024import javax.faces.view.facelets.FaceletHandler;
025import javax.faces.view.facelets.TagAttributes;
026import javax.faces.view.facelets.TagConfig;
027import javax.faces.view.facelets.ValidatorConfig;
028
029/**
030 * Helper for generating configs outside of a library context.
031 *
032 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a>
033 * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
034 */
035@Deprecated
036public final class TagConfigFactory {
037
038    /**
039     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
040     **/
041    @Deprecated
042    public static TagConfig createTagConfig(TagConfig tagConfig, String tagConfigId, TagAttributes attributes,
043            FaceletHandler nextHandler) {
044        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createTagConfig(tagConfig, tagConfigId,
045                attributes, nextHandler);
046    }
047
048    /**
049     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
050     **/
051    @Deprecated
052    public static ComponentConfig createComponentConfig(TagConfig tagConfig, String tagConfigId,
053            TagAttributes attributes, FaceletHandler nextHandler, String componentType, String rendererType) {
054        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createComponentConfig(tagConfig, tagConfigId,
055                attributes, nextHandler, componentType, rendererType);
056    }
057
058    /**
059     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
060     **/
061    @Deprecated
062    public static ConverterConfig createConverterConfig(TagConfig tagConfig, String tagConfigId,
063            TagAttributes attributes, FaceletHandler nextHandler, String converterId) {
064        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createConverterConfig(tagConfig, tagConfigId,
065                attributes, nextHandler, converterId);
066    }
067
068    /**
069     * @deprecated since 5.7: use {@link org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory} instead
070     **/
071    @Deprecated
072    public static ValidatorConfig createValidatorConfig(TagConfig tagConfig, String tagConfigId,
073            TagAttributes attributes, FaceletHandler nextHandler, String validatorId) {
074        return org.nuxeo.ecm.platform.ui.web.tag.handler.TagConfigFactory.createValidatorConfig(tagConfig, tagConfigId,
075                attributes, nextHandler, validatorId);
076    }
077
078}