@Override void processFilter(String name, String value) { if (KIND.equals(name)) { declaringBeanKind = BeanKind.from(value); } else if (BEAN_CLASS.equals(name)) { beanClass = value; } else if (OBSERVED_TYPE.equals(name)) { observedType = value; } else if (QUALIFIER.equals(name)) { qualifier = value; } else if (RECEPTION.equals(name)) { for (Reception recept : Reception.values()) { if (recept.toString().equals(value)) { reception = recept; } } } else if (TX_PHASE.equals(name)) { for (TransactionPhase phase : TransactionPhase.values()) { if (phase.toString().equals(value)) { txPhase = phase; } } } else if (BDA.equals(name)) { bda = value; } }
@Override public boolean test(Bean<?> bean) { return testBda(bda, bean) && testEquals(kind, BeanKind.from(bean)) && testContainsIgnoreCase(beanClass, bean.getBeanClass()) && testContainsIgnoreCase(scope, bean.getScope()) && testAnyContains(beanType, bean.getTypes()) && testAnyContains(qualifier, bean.getQualifiers()) && testEquals(isAlternative, bean.isAlternative()) && testAnyContains(stereotypes, bean.getStereotypes()); }
@Override boolean test(ObserverMethod<?> observer) { final Bean<?> declaringBean; if (observer instanceof ObserverMethodImpl) { declaringBean = ((ObserverMethodImpl<?, ?>) observer).getDeclaringBean(); } else { declaringBean = null; } return testBda(bda, declaringBean) && testEquals(declaringBeanKind, BeanKind.from(declaringBean)) && testEquals(reception, observer.getReception()) && testEquals(txPhase, observer.getTransactionPhase()) && testContainsIgnoreCase(beanClass, observer.getBeanClass()) && testContainsIgnoreCase(observedType, observer.getObservedType()) && testAnyContains(qualifier, observer.getObservedQualifiers()); }
@Override void processFilter(String name, String value) { if (KIND.equals(name)) { kind = BeanKind.from(value); } else if (BEAN_CLASS.equals(name)) { beanClass = value; } else if (BEAN_TYPE.equals(name)) { beanType = value; } else if (QUALIFIER.equals(name)) { qualifier = value; } else if (SCOPE.equals(name)) { scope = value; } else if (BDA.equals(name)) { bda = value; } else if (IS_ALTERNATIVE.equals(name)) { isAlternative = Boolean.valueOf(value); } else if (STEREOTYPES.equals(name)) { stereotypes = value; } }