org.jboss.weld.util.reflection.SessionBeanHierarchyDiscovery Maven / Gradle / Ivy
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