INotification
473474475476477478479480481482483
{ Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observableMethod, Observes.class); boolean ifExist = false; if (observes.notifyObserver().equals(Reception.IF_EXISTS)) { ifExist = true; } ObserverMethodImpl<T> observer = new ObserverMethodImpl(component, observableMethod, ifExist);
506507508509510511512513514515516
Observes observes = AnnotationUtil.getAnnotatedMethodFirstParameterAnnotation(annotatedMethod, Observes.class); boolean ifExist = false; if(observes != null) { if (observes.notifyObserver().equals(Reception.IF_EXISTS)) { ifExist = true; } }
111112113114115116117118119120121
} public static boolean isReceptionIfExist(Method observerMethod) { Observes observes = AnnotationUtil.getMethodFirstParameterAnnotation(observerMethod, Observes.class); Reception reception = observes.notifyObserver(); if(reception.equals(Reception.IF_EXISTS)) { return true; }
199200201202203204205206207208209
{ //Check Reception AnnotationUtil.getAnnotatedMethodFirstParameterWithAnnotation(annotatedMethod, Observes.class); Observes observes = AnnotationUtil.getAnnotatedMethodFirstParameterAnnotation(annotatedMethod, Observes.class); Reception reception = observes.notifyObserver(); if(reception.equals(Reception.IF_EXISTS)) { throw new WebBeansConfigurationException("Dependent Bean : " + bean + " can not define observer method with @Receiver = IF_EXIST"); } }
484485486487488489490491492493494
517518519520521522523524525526527
116117118119120121122123124125126
202203204205206207208209210211212
485486487488489490491492493494495
518519520521522523524525526527528