001/**
002 *
003 * Copyright the original author or authors
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 *     http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.jivesoftware.smack.provider;
018
019/**
020 * Defines the information required to register a packet extension Provider with the {@link ProviderManager} when using the
021 * {@link ProviderLoader}.
022 * 
023 * @author Robin Collier
024 *
025 */
026public final class ExtensionProviderInfo extends AbstractProviderInfo {
027
028    /**
029     * Defines an extension provider which implements the <code>PacketExtensionProvider</code> interface.
030     * 
031     * @param elementName Element that provider parses.
032     * @param namespace Namespace that provider parses.
033     * @param extProvider The provider implementation.
034     */
035    public ExtensionProviderInfo(String elementName, String namespace, PacketExtensionProvider extProvider) {
036        super(elementName, namespace, extProvider);
037    }
038
039    /**
040     * Defines an extension provider which is adheres to the JavaBean spec for parsing the extension.
041     * 
042     * @param elementName Element that provider parses.
043     * @param namespace Namespace that provider parses.
044     * @param beanClass The provider bean class.
045     */
046    public ExtensionProviderInfo(String elementName, String namespace, Class<?> beanClass) {
047        super(elementName, namespace, beanClass);
048    }
049}