/*
 * This file is part of SpongeAPI, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered <https://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.spongepowered.api.network;

import com.google.inject.BindingAnnotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * An annotation used for naming {@link ChannelBinding} injections.
 *
 * <p><pre>{@code @ChannelId("SomeChannel") @Inject
 * ChannelBinding.RawDataChannel channel;}</pre></p>
 */
@BindingAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
public @interface ChannelId {

    /**
     * Gets the channel id.
     *
     * @return The channel id
     */
    String value();
}

@@ -1327,16 +1327,57 @@
 otation;
+%0Aimport org.spongepowered.api.CatalogKey;
 %0A%0Aimport
@@ -1617,321 +1617,800 @@
  %3Cp%3E
-%3Cpre%3E%7B@code @ChannelId(%22SomeChannel%22) @Inject%0A * ChannelBinding.RawDataChannel channel;%7D%3C/pre%3E%3C/p%3E%0A */%0A@BindingAnnotation%0A@Retention(RetentionPolicy.RUNTIME)%0A@Target(%7BElementType.FIELD, ElementType.PARAMETER%7D)%0Apublic @interface ChannelId %7B%0A%0A    /**%0A     * Gets the channel id.%0A     *%0A     * @return The channel id
+Due to the limitations of Java annotations,%0A * the 'namespace' and 'value' components of the %7B@link CatalogKey%7D%0A * must be specified separately, instead of using a %7B@link CatalogKey%7D directly.%3C/p%3E%0A *%0A * %3Cp%3E%3Cpre%3E%7B@code @ChannelId(namespace=%22myplugin%22, value=%22SomeChannel%22) @Inject%0A * ChannelBinding.RawDataChannel channel;%7D%3C/pre%3E%3C/p%3E%0A */%0A@BindingAnnotation%0A@Retention(RetentionPolicy.RUNTIME)%0A@Target(%7BElementType.FIELD, ElementType.PARAMETER%7D)%0Apublic @interface ChannelId %7B%0A%0A    /**%0A     * Gets the channel namespace.%0A     *%0A     * %3Cp%3EThis corresponds to %7B@link CatalogKey#getNamespace()%7D%3C/p%3E%0A     *%0A     * @return The channel namespace%0A     */%0A    String namespace();%0A%0A    /**%0A     * Get the channel name.%0A     *%0A     * %3Cp%3EThis corresponds to %7B@link CatalogKey#getValue()%7D%3C/p%3E%0A     * @return
 %0A   

Update ChannelId annotaiton for CatalogKey change