001/*
002 * Copyright 2014 Atteo.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.atteo.evo.classindex;
018
019import java.lang.annotation.Annotation;
020
021/**
022 * Just for v2.0 compatibility.
023 * @deprecated please use {@link org.atteo.classindex.ClassIndex} instead.
024 */
025@Deprecated
026public class ClassIndex {
027    @Deprecated
028    @SuppressWarnings("unchecked")
029    public static <T> Iterable<Class<? extends T>> getSubclasses(Class<T> superClass) {
030        return org.atteo.classindex.ClassIndex.getSubclasses(superClass);
031    }
032
033    @Deprecated
034    public static Iterable<Class<?>> getPackageClasses(String packageName) {
035        return org.atteo.classindex.ClassIndex.getPackageClasses(packageName);
036    }
037
038    @Deprecated
039    public static Iterable<Class<?>> getAnnotated(Class<? extends Annotation> annotation) {
040        return org.atteo.classindex.ClassIndex.getAnnotated(annotation);
041    }
042
043    @Deprecated
044    public static String getClassSummary(Class<?> klass) {
045        return org.atteo.classindex.ClassIndex.getClassSummary(klass);
046    }
047}