/*
 * JBoss, Home of Professional Open Source
 * Copyright 2009, JBoss Inc., and individual contributors as indicated
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.jboss.remoting3.taglet;

import java.util.Map;

import com.sun.javadoc.Tag;
import com.sun.tools.doclets.Taglet;

public abstract class RemotingTypeTaglet implements Taglet {

    public boolean inField() {
        return false;
    }

    public boolean inConstructor() {
        return false;
    }

    public boolean inMethod() {
        return false;
    }

    public boolean inOverview() {
        return false;
    }

    public boolean inPackage() {
        return false;
    }

    public boolean inType() {
        return true;
    }

    public boolean isInlineTag() {
        return false;
    }

    public String toString(final Tag[] tags) {
        return tags.length > 0 ? toString(tags[0]) : "";
    }

    private static void add(Map<String, Taglet> tagletMap, Taglet taglet) {
        tagletMap.put(taglet.getName(), taglet);
    }

    public static void register(Map<String, Taglet> tagletMap) {
        add(tagletMap, new RemotingConsumeTaglet());
        add(tagletMap, new RemotingImplementTaglet());
        add(tagletMap, new RemotingInternalTaglet());
    }
}

@@ -1087,56 +1087,245 @@
 sun.
-javadoc.Tag;%0Aimport com.sun.tools.doclets.Taglet
+tools.doclets.internal.toolkit.taglets.Taglet;%0Aimport com.sun.tools.doclets.internal.toolkit.taglets.TagletOutput;%0Aimport com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter;%0Aimport com.sun.javadoc.Tag;%0Aimport com.sun.javadoc.Doc
 ;%0A%0Ap
@@ -1804,39 +1804,654 @@
   return false;%0A
-
     %7D%0A%0A
+    public TagletOutput getTagletOutput(final Tag tag, final TagletWriter tagletWriter) throws IllegalArgumentException %7B%0A        final TagletOutput output = tagletWriter.getOutputInstance();%0A        output.setOutput(toString(tag.firstSentenceTags()));%0A        return output;%0A    %7D%0A%0A    public TagletOutput getTagletOutput(final Doc doc, final TagletWriter tagletWriter) throws IllegalArgumentException %7B%0A        final TagletOutput output = tagletWriter.getOutputInstance();%0A        output.setOutput(toString(doc.tags(getName())));%0A        return output;%0A    %7D%0A%0A    public abstract String toString(final Tag tag);%0A%0A
     public Strin

Fix the taglet to use the newer taglet API