All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.weld.util.reflection.SessionBeanHierarchyDiscovery Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
package org.jboss.weld.util.reflection;

import java.lang.reflect.Type;

import org.jboss.weld.util.Types;

public class SessionBeanHierarchyDiscovery extends HierarchyDiscovery {

    public SessionBeanHierarchyDiscovery(Type type) {
        super(Types.getCanonicalType(type));
    }

    protected void discoverFromClass(Class clazz, boolean rawGeneric) {
        /*
         * If the type is a class then super types are discovered but not interfaces.
         * If the type is an interface then its super interfaces are discovered.
         */
        if (clazz.getSuperclass() != null) {
            discoverTypes(processAndResolveType(clazz.getGenericSuperclass(), clazz.getSuperclass()), rawGeneric);
        } else if (clazz.isInterface()) {
            discoverInterfaces(clazz, rawGeneric);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy