Package javax.faces.flow

Examples of javax.faces.flow.FlowScoped


        // 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));
            }
        }
    }
View Full Code Here


       flowScopedBeanFlowIds = new ConcurrentHashMap<Contextual<?>, FlowCDIContext.FlowBeanInfo>();
       isCdiOneOneOrGreater = Util.isCdiOneOneOrGreater();
   }
  
   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);
       }
   }
View Full Code Here

       flowScopedBeanFlowIds = new ConcurrentHashMap<Contextual<?>, FlowCDIContext.FlowBeanInfo>();
       isCdiOneOneOrGreater = Util.isCdiOneOneOrGreater();
   }
  
   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);
       }
   }
View Full Code Here

TOP

Related Classes of javax.faces.flow.FlowScoped

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.