Skip to content

Commit

Permalink
small faces cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tandraschko authored and rzo1 committed Jan 17, 2024
1 parent ebc0521 commit 03139fc
Showing 1 changed file with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
import org.apache.openejb.jee.EnterpriseBean;
import org.apache.openejb.jee.EnvEntry;
import org.apache.openejb.jee.ExcludeList;
import org.apache.openejb.jee.FacesConfig;
import org.apache.openejb.jee.FacesManagedBean;
import org.apache.openejb.jee.Filter;
import org.apache.openejb.jee.Handler;
import org.apache.openejb.jee.HandlerChains;
Expand Down Expand Up @@ -288,15 +286,6 @@ public class AnnotationDeployer implements DynamicDeployer {
private static final String[] JSF_CLASSES = new String[]{
"jakarta.faces.application.ResourceDependencies",
"jakarta.faces.application.ResourceDependency",
"jakarta.faces.bean.ApplicationScoped",
"jakarta.faces.bean.CustomScoped",
"jakarta.faces.bean.ManagedBean",
"jakarta.faces.bean.ManagedProperty",
"jakarta.faces.bean.NoneScoped",
"jakarta.faces.bean.ReferencedBean",
"jakarta.faces.bean.RequestScoped",
"jakarta.faces.bean.SessionScoped",
"jakarta.faces.bean.ViewScoped",
"jakarta.faces.component.FacesComponent",
"jakarta.faces.component.UIComponent",
"jakarta.faces.convert.Converter",
Expand Down Expand Up @@ -2432,25 +2421,6 @@ public WebModule deploy(final WebModule webModule) throws OpenEJBException {
}
}

/*
* JSF ManagedBean classes are scanned
*/
for (final FacesConfig facesConfig : webModule.getFacesConfigs()) {
for (final FacesManagedBean bean : facesConfig.getManagedBean()) {
final String managedBeanClass = realClassName(bean.getManagedBeanClass().trim());
if (managedBeanClass != null) {
try {
final Class clazz = classLoader.loadClass(managedBeanClass);
classes.add(clazz);
} catch (final ClassNotFoundException | NoClassDefFoundError e) {
logger.debug("Could not load Faces managed bean class {1} for web module {2} / {3}",
managedBeanClass, webModule.getJarLocation(), webModule.getFile().getName());
logger.error("Unable to load JSF managed bean class: " + managedBeanClass);
}
}
}
}

final IAnnotationFinder finder = webModule.getFinder();

if (finder != null) {
Expand Down

0 comments on commit 03139fc

Please sign in to comment.