public void processBean(@Observes ProcessBean<?> event) { FlowScoped flowScoped = event.getAnnotated().getAnnotation(FlowScoped.class); if (null != flowScoped) { FlowCDIContext.FlowBeanInfo fbi = new FlowCDIContext.FlowBeanInfo(); fbi.definingDocumentId = flowScoped.definingDocumentId(); fbi.id = flowScoped.value(); flowScopedBeanFlowIds.put(event.getBean(), fbi); } }
public void processBean(@Observes ProcessBean<?> event) { FlowScoped flowScoped = event.getAnnotated().getAnnotation(FlowScoped.class); if (null != flowScoped) { FlowCDIContext.FlowBeanInfo fbi = new FlowCDIContext.FlowBeanInfo(); fbi.definingDocumentId = flowScoped.definingDocumentId(); fbi.id = flowScoped.value(); flowScopedBeanFlowIds.put(event.getBean(), fbi); } }
public void processBean(@Observes ProcessBean<?> event) { FlowScoped flowScoped = event.getAnnotated().getAnnotation(FlowScoped.class); if (null != flowScoped) { FlowCDIContext.FlowBeanInfo fbi = new FlowCDIContext.FlowBeanInfo(); fbi.definingDocumentId = flowScoped.definingDocumentId(); fbi.id = flowScoped.value(); flowScopedBeanFlowIds.put(event.getBean(), fbi); } }
public void processBean(@Observes ProcessBean<?> event) { FlowScoped flowScoped = event.getAnnotated().getAnnotation(FlowScoped.class); if (null != flowScoped) { FlowCDIContext.FlowBeanInfo fbi = new FlowCDIContext.FlowBeanInfo(); fbi.definingDocumentId = flowScoped.definingDocumentId(); fbi.id = flowScoped.value(); flowScopedBeanFlowIds.put(event.getBean(), fbi); } }
void onProcessBean(@Observes ProcessBean event, BeanManager manager) { // Register all beans who are annotated with FlowScoped and has a flow reference // restriction, to take it into account later when it is created and store it // in the right context so @PreDestroy is called when the referenced flow is. if (event.getAnnotated().isAnnotationPresent(FlowScoped.class)) { FlowScoped flowScoped = event.getAnnotated().getAnnotation(FlowScoped.class); String flowId = flowScoped.value(); if (flowId != null) { flowBeanReferences.put(event.getBean().getBeanClass(), new FlowReference( flowScoped.definingDocumentId(), flowId)); } } }