001    /*
002     * Copyright 2013 Erik Kuefler
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
005     * in compliance with the License. You may obtain a copy of the License at
006     *
007     * http://www.apache.org/licenses/LICENSE-2.0
008     *
009     * Unless required by applicable law or agreed to in writing, software distributed under the License
010     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
011     * or implied. See the License for the specific language governing permissions and limitations under
012     * the License.
013     */
014    package com.ekuefler.supereventbus;
015    
016    import com.ekuefler.supereventbus.impl.EventHandlerMethod;
017    
018    import java.util.List;
019    
020    /**
021     * A tagging interface associated with classes capable of handling events. Users should declare
022     * subtypes of this interface corresponding to each class that should be registered on the event bus
023     * - see the documentation of {@link EventBus} for details. Implementations of this interface are
024     * generated by the GWT compiler - users should NOT implement this interface themselves. This
025     * interface is subject to changes which may break user-defined implementations.
026     *
027     * @author ekuefler@gmail.com (Erik Kuefler)
028     * @param <T> class to which this registration applies
029     */
030    public interface EventRegistration<T> {
031      /**
032       * DO NOT IMPLEMENT THIS METHOD. Implementations are generated automatically by the GWT compiler,
033       * and its details are subject to change.
034       */
035      List<EventHandlerMethod<T, ?>> getMethods();
036    }