@Named @FlowScoped(value = "bounded-task-flow", definingDocumentId = "flow01") public class FlowBean01 implements Serializable { public FlowBean01() { } public String getName() { return "flow01 name"; } public String getReturnValue() { return "/return1"; } }
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); } }
@Named @FlowScoped(value = "bounded-task-flow", definingDocumentId = "flow02") public class FlowBean02 implements Serializable { public FlowBean02() { } public String getName() { return "flow02 name"; } public String getReturnValue() { return "/return1"; } }
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); } }
@Named @FlowScoped("bounded-task-flow") public class FlowBean implements Serializable { public FlowBean() { } public String getName() { return "basicFlow"; } public String getReturnValue() { return "/return1"; } }
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)); } } }
@Named @FlowScoped("flow_with_template_in_jar") public class FlowBean implements Serializable { public FlowBean() { } public String getName() { return "basicFlow"; } public String getReturnValue() { return "/return1"; } }
@Named @FlowScoped("activation") public class ActivationBean implements Serializable {
@Named @FlowScoped("registration") public class RegistrationBean implements Serializable {