/* */ {
/* 1093 */ Class bean = this.classloader.loadClass(name);
/* */
/* 1101 */ if (!hasEntityBeanInterface(bean))
/* */ {
/* 1103 */ fireSpecViolationEvent(entity, new Section("9.2.2.a"));
/* 1104 */ status = false;
/* */ }
/* */
/* 1112 */ if (!isPublic(bean))
/* */ {
/* 1114 */ fireSpecViolationEvent(entity, new Section("9.2.2.b"));
/* 1115 */ status = false;
/* */ }
/* */
/* 1123 */ if (isAbstract(bean))
/* */ {
/* 1125 */ fireSpecViolationEvent(entity, new Section("9.2.2.c"));
/* 1126 */ status = false;
/* */ }
/* */
/* 1134 */ if (isFinal(bean))
/* */ {
/* 1136 */ fireSpecViolationEvent(entity, new Section("9.2.2.d"));
/* 1137 */ status = false;
/* */ }
/* */
/* 1146 */ if (!hasDefaultConstructor(bean))
/* */ {
/* 1148 */ fireSpecViolationEvent(entity, new Section("9.2.2.e"));
/* 1149 */ status = false;
/* */ }
/* */
/* 1157 */ if (hasFinalizer(bean))
/* */ {
/* 1159 */ fireSpecViolationEvent(entity, new Section("9.2.2.f"));
/* 1160 */ status = false;
/* */ }
/* */
/* 1174 */ if (hasEJBCreateMethod(bean, false))
/* */ {
/* 1176 */ Iterator it = getEJBCreateMethods(bean);
/* 1177 */ while (it.hasNext())
/* */ {
/* 1179 */ Method ejbCreate = (Method)it.next();
/* */
/* 1181 */ if (!isPublic(ejbCreate))
/* */ {
/* 1183 */ fireSpecViolationEvent(entity, ejbCreate, new Section("9.2.3.a"));
/* 1184 */ status = false;
/* */ }
/* */
/* 1187 */ if ((isFinal(ejbCreate)) || (isStatic(ejbCreate)))
/* */ {
/* 1189 */ fireSpecViolationEvent(entity, ejbCreate, new Section("9.2.3.b"));
/* 1190 */ status = false;
/* */ }
/* */
/* 1193 */ if (!hasPrimaryKeyReturnType(entity, ejbCreate))
/* */ {
/* 1195 */ fireSpecViolationEvent(entity, ejbCreate, new Section("9.2.3.c"));
/* 1196 */ status = false;
/* */ }
/* */
/* 1199 */ if (!hasLegalRMIIIOPArguments(ejbCreate))
/* */ {
/* 1201 */ fireSpecViolationEvent(entity, ejbCreate, new Section("9.2.3.d"));
/* 1202 */ status = false;
/* */ }
/* */
/* 1205 */ if (!hasLegalRMIIIOPReturnType(ejbCreate))
/* */ {
/* 1207 */ fireSpecViolationEvent(entity, ejbCreate, new Section("9.2.3.e"));
/* 1208 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* 1227 */ if (hasEJBCreateMethod(bean, false))
/* */ {
/* 1229 */ Iterator it = getEJBCreateMethods(bean);
/* 1230 */ while (it.hasNext())
/* */ {
/* 1232 */ Method ejbCreate = (Method)it.next();
/* */
/* 1234 */ if (!hasMatchingEJBPostCreate(bean, ejbCreate))
/* */ {
/* 1236 */ fireSpecViolationEvent(entity, ejbCreate, new Section("9.2.4.a"));
/* 1237 */ status = false;
/* */ }
/* */
/* 1240 */ if (hasMatchingEJBPostCreate(bean, ejbCreate))
/* */ {
/* 1242 */ Method ejbPostCreate = getMatchingEJBPostCreate(bean, ejbCreate);
/* */
/* 1244 */ if (!isPublic(ejbPostCreate))
/* */ {
/* 1246 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("9.2.4.b"));
/* 1247 */ status = false;
/* */ }
/* */
/* 1250 */ if (isStatic(ejbPostCreate))
/* */ {
/* 1252 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("9.2.4.c"));
/* 1253 */ status = false;
/* */ }
/* */
/* 1256 */ if (isFinal(ejbPostCreate))
/* */ {
/* 1258 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("9.2.4.d"));
/* 1259 */ status = false;
/* */ }
/* */
/* 1262 */ if (!hasVoidReturnType(ejbPostCreate))
/* */ {
/* 1264 */ fireSpecViolationEvent(entity, ejbPostCreate, new Section("9.2.4.e"));
/* 1265 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* 1281 */ if ((entity.isBMP()) && (!hasEJBFindByPrimaryKey(bean)))
/* */ {
/* 1283 */ fireSpecViolationEvent(entity, new Section("9.2.5.a"));
/* 1284 */ status = false;
/* */ }
/* */
/* 1287 */ if (hasEJBFindByPrimaryKey(bean))
/* */ {
/* 1289 */ Method ejbFindByPrimaryKey = getEJBFindByPrimaryKey(bean);
/* */
/* 1291 */ if (!hasPrimaryKeyReturnType(entity, ejbFindByPrimaryKey))
/* */ {
/* 1293 */ fireSpecViolationEvent(entity, ejbFindByPrimaryKey, new Section("9.2.5.b"));
/* 1294 */ status = false;
/* */ }
/* */
/* 1297 */ if (!isSingleObjectFinder(entity, ejbFindByPrimaryKey))
/* */ {
/* 1299 */ fireSpecViolationEvent(entity, ejbFindByPrimaryKey, new Section("9.2.5.c"));
/* 1300 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* 1320 */ if (hasFinderMethod(bean))
/* */ {
/* 1322 */ Iterator it = getEJBFindMethods(bean);
/* 1323 */ while (it.hasNext())
/* */ {
/* 1325 */ Method finder = (Method)it.next();
/* */
/* 1327 */ if (!isPublic(finder))
/* */ {
/* 1329 */ fireSpecViolationEvent(entity, finder, new Section("9.2.5.d"));
/* 1330 */ status = false;
/* */ }
/* */
/* 1333 */ if (isFinal(finder))
/* */ {
/* 1335 */ fireSpecViolationEvent(entity, finder, new Section("9.2.5.e"));
/* 1336 */ status = false;
/* */ }
/* */
/* 1339 */ if (isStatic(finder))
/* */ {
/* 1341 */ fireSpecViolationEvent(entity, finder, new Section("9.2.5.f"));
/* 1342 */ status = false;
/* */ }
/* */
/* 1345 */ if (!hasLegalRMIIIOPArguments(finder))
/* */ {
/* 1347 */ fireSpecViolationEvent(entity, finder, new Section("9.2.5.g"));
/* 1348 */ status = false;
/* */ }
/* */
/* 1351 */ if ((!isSingleObjectFinder(entity, finder)) && (!isMultiObjectFinder(finder)))
/* */ {
/* 1354 */ fireSpecViolationEvent(entity, finder, new Section("9.2.5.h"));
/* 1355 */ status = false;
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */
/* */ }
/* */ catch (ClassNotFoundException e)
/* */ {
/* 1369 */ fireSpecViolationEvent(entity, new Section("16.2.b"));
/* 1370 */ status = false;
/* */ }
/* */
/* 1373 */ return status;
/* */ }