builder = new AnnotatedTypeBuilder<X>().readFromType(type); builder.addToClass(SecurityInterceptorBindingLiteral.INSTANCE); isSecured = true; if (annotation.annotationType().isAnnotationPresent(SecurityBindingType.class)) { if (builder == null) { builder = new AnnotatedTypeBuilder<X>().readFromType(type);
boolean addedToClass = false; if (type.isAnnotationPresent(Transactional.class)) { builder = new AnnotatedTypeBuilder<X>().readFromType(type); builder.addToClass(TransactionInterceptorBindingLiteral.INSTANCE); addedToClass = true; } else if (type.isAnnotationPresent(EjbApi.TRANSACTION_ATTRIBUTE) && !EjbApi.isEjb(event.getAnnotatedType())) { checkTransactionAttributeIsValue(type, type); builder = new AnnotatedTypeBuilder<X>().readFromType(type); builder.addToClass(TransactionInterceptorBindingLiteral.INSTANCE); addedToClass = true; for (Annotation stereotypeAnnotation : beanManager.getStereotypeDefinition(annotation.annotationType())) { if (stereotypeAnnotation.annotationType().equals(Transactional.class)) { builder = new AnnotatedTypeBuilder<X>().readFromType(type); builder.addToClass(TransactionInterceptorBindingLiteral.INSTANCE); addedToClass = true; } else if (stereotypeAnnotation.annotationType().equals(EjbApi.TRANSACTION_ATTRIBUTE) && !EjbApi.isEjb(event.getAnnotatedType())) { checkTransactionAttributeIsValue(type, type); builder = new AnnotatedTypeBuilder<X>().readFromType(type); builder.addToClass(TransactionInterceptorBindingLiteral.INSTANCE); addedToClass = true; if (m.isAnnotationPresent(Transactional.class)) { if (builder == null) { builder = new AnnotatedTypeBuilder<X>().readFromType(type); checkTransactionAttributeIsValue(type, m);