org.jboss.weld.module.ejb.SessionBeanHierarchyDiscovery Maven / Gradle / Ivy
The newest version!
package org.jboss.weld.module.ejb;
import java.lang.reflect.Type;
import org.jboss.weld.util.Types;
import org.jboss.weld.util.reflection.HierarchyDiscovery;
class SessionBeanHierarchyDiscovery extends HierarchyDiscovery {
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 - 2024 Weber Informatics LLC | Privacy Policy