tikhomirov@423: /* tikhomirov@423: * Copyright (c) 2012 TMate Software Ltd tikhomirov@423: * tikhomirov@423: * This program is free software; you can redistribute it and/or modify tikhomirov@423: * it under the terms of the GNU General Public License as published by tikhomirov@423: * the Free Software Foundation; version 2 of the License. tikhomirov@423: * tikhomirov@423: * This program is distributed in the hope that it will be useful, tikhomirov@423: * but WITHOUT ANY WARRANTY; without even the implied warranty of tikhomirov@423: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tikhomirov@423: * GNU General Public License for more details. tikhomirov@423: * tikhomirov@423: * For information on how to redistribute this software under tikhomirov@423: * the terms of a license other than GNU General Public License tikhomirov@423: * contact TMate Software at support@hg4j.com tikhomirov@423: */ tikhomirov@423: package org.tmatesoft.hg.internal; tikhomirov@423: tikhomirov@423: import java.lang.annotation.ElementType; tikhomirov@423: import java.lang.annotation.Retention; tikhomirov@423: import java.lang.annotation.RetentionPolicy; tikhomirov@423: import java.lang.annotation.Target; tikhomirov@423: tikhomirov@423: import org.tmatesoft.hg.core.HgCallbackTargetException; tikhomirov@423: tikhomirov@423: /** tikhomirov@423: * Marker to ease location of callback interfaces in the API. tikhomirov@423: * tikhomirov@423: * All classes/interfaces supposed to be subclassed/implemented by users, with methods throwing {@link HgCallbackTargetException} shall bear the mark. tikhomirov@423: * Besides, classes that are low-level callbacks (from {@link org.tmatesoft.hg.repo}) shall bear it, too. tikhomirov@423: * tikhomirov@423: * @author Artem Tikhomirov tikhomirov@423: * @author TMate Software Ltd. tikhomirov@423: */ tikhomirov@423: @Retention(RetentionPolicy.SOURCE) tikhomirov@423: @Target({ ElementType.TYPE }) tikhomirov@423: public @interface Callback { tikhomirov@423: }