myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: cleanup
Date Thu, 20 Jun 2019 10:58:09 GMT
This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new 18f7f6e  cleanup
18f7f6e is described below

commit 18f7f6e343d213b548fea42c31342909c6f6f7f9
Author: Thomas Andraschko <tandraschko@apache.org>
AuthorDate: Thu Jun 20 12:57:59 2019 +0200

    cleanup
---
 .../myfaces/push/cdi/PushContextCDIExtension.java  | 28 +---------------------
 1 file changed, 1 insertion(+), 27 deletions(-)

diff --git a/impl/src/main/java/org/apache/myfaces/push/cdi/PushContextCDIExtension.java b/impl/src/main/java/org/apache/myfaces/push/cdi/PushContextCDIExtension.java
index bcfdb50..cf7669a 100644
--- a/impl/src/main/java/org/apache/myfaces/push/cdi/PushContextCDIExtension.java
+++ b/impl/src/main/java/org/apache/myfaces/push/cdi/PushContextCDIExtension.java
@@ -19,32 +19,18 @@
 
 package org.apache.myfaces.push.cdi;
 
-import java.util.ArrayList;
-import java.util.List;
 import javax.enterprise.event.Observes;
 import javax.enterprise.inject.spi.AnnotatedType;
 import javax.enterprise.inject.spi.BeanManager;
 import javax.enterprise.inject.spi.BeforeBeanDiscovery;
 import javax.enterprise.inject.spi.Extension;
-import javax.enterprise.inject.spi.ProcessProducer;
-import javax.enterprise.inject.spi.Producer;
-import javax.faces.push.Push;
-import javax.faces.push.PushContext;
 
 /**
  *
  */
 public class PushContextCDIExtension implements Extension
 {
-    private List<Producer<PushContext>> pushContextProducers = new ArrayList<Producer<PushContext>>();
-
-    public List<Producer<PushContext>> getPushContextProducers()
-    {
-        return pushContextProducers;
-    }
-
-    void beforeBeanDiscovery(
-        @Observes final BeforeBeanDiscovery event, BeanManager beanManager)
+    void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery event, BeanManager beanManager)
     {
         // Register PushContextFactoryBean as a bean with CDI annotations, so the system
         // can take it into account, and use it later when necessary.
@@ -64,16 +50,4 @@ public class PushContextCDIExtension implements Extension
         AnnotatedType apphandlerbean = beanManager.createAnnotatedType(WebsocketApplicationBean.class);
         event.addAnnotatedType(apphandlerbean, apphandlerbean.getJavaClass().getName());
     }
-
-    /**
-     * Stores any producer method that is annotated with @Push
-     */
-    <T> void findFlowDefinition(@Observes ProcessProducer<T, PushContext> processProducer)
-    {
-        if (processProducer.getAnnotatedMember().isAnnotationPresent(Push.class))
-        {
-            pushContextProducers.add(processProducer.getProducer());
-        }
-    }
-
 }


Mime
View raw message