/* 1144 */ if (enterpriseBean != null)
/* */ {
/* 1146 */ TransactionManagementType transactionType = enterpriseBean.getTransactionType();
/* 1147 */ if (transactionType != null)
/* */ {
/* 1149 */ TransactionManagementImpl annotation = new TransactionManagementImpl();
/* 1150 */ annotation.setValue(transactionType);
/* 1151 */ addClassAnnotation(container, TransactionManagement.class, annotation);
/* */ }
/* */
/* 1154 */ MethodAttributesMetaData attributes = enterpriseBean.getMethodAttributes();
/* 1155 */ if (attributes != null)
/* */ {
/* 1157 */ for (MethodAttributeMetaData method : attributes)
/* */ {
/* 1159 */ TransactionTimeout timeoutAnnotation = new TransactionTimeoutImpl(method.getTransactionTimeout());
/* 1160 */ addAnnotations(TransactionTimeout.class, timeoutAnnotation, container, method.getMethodName(), null);
/* */ }
/* */ }
/* */ }
/* */
/* 1165 */ JBossAssemblyDescriptorMetaData descriptor = this.dd.getAssemblyDescriptor();
/* */ Iterator i$;
/* 1166 */ if ((descriptor != null) && (descriptor.getContainerTransactions() != null))
/* */ {
/* 1168 */ for (i$ = descriptor.getContainerTransactions().iterator(); i$.hasNext(); ) { transaction = (ContainerTransactionMetaData)i$.next();
/* */
/* 1170 */ for (MethodMetaData method : transaction.getMethods())
/* */ {
/* 1172 */ if (method.getEjbName().equals(ejbName))
/* */ {
/* 1174 */ TransactionAttributeImpl annotation = new TransactionAttributeImpl();
/* 1175 */ annotation.setType(transaction.getTransAttribute());
/* 1176 */ addAnnotations(TransactionAttribute.class, annotation, container, method);
/* */ }
/* */ }
/* */ }
/* */ }