use of org.apache.openejb.jee.EnterpriseBean in project tomee by apache.
the class CheckMethods method validate.
public void validate(final EjbModule ejbModule) {
for (final EnterpriseBean bean : ejbModule.getEjbJar().getEnterpriseBeans()) {
if (!(bean instanceof RemoteBean)) {
continue;
}
final RemoteBean b = (RemoteBean) bean;
if (b.getHome() != null) {
check_remoteInterfaceMethods(b);
check_homeInterfaceMethods(b);
}
if (b.getLocalHome() != null) {
check_localInterfaceMethods(b);
check_localHomeInterfaceMethods(b);
}
check_unusedCreateMethods(b);
check_unusedPostCreateMethods(b);
}
}
Aggregations