You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2013/01/17 16:37:38 UTC

svn commit: r1434730 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java

Author: struberg
Date: Thu Jan 17 15:37:38 2013
New Revision: 1434730

URL: http://svn.apache.org/viewvc?rev=1434730&view=rev
Log:
OWB-344 and now something completely different:  more unused code

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java?rev=1434730&r1=1434729&r2=1434730&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java (original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java Thu Jan 17 15:37:38 2013
@@ -45,7 +45,6 @@ import javax.decorator.Decorator;
 import javax.enterprise.context.Dependent;
 import javax.enterprise.context.NormalScope;
 import javax.enterprise.context.spi.Contextual;
-import javax.enterprise.event.Event;
 import javax.enterprise.event.Observes;
 import javax.enterprise.inject.Alternative;
 import javax.enterprise.inject.Disposes;
@@ -79,10 +78,8 @@ import javax.enterprise.inject.spi.Proce
 import javax.enterprise.inject.spi.ProcessProducerField;
 import javax.enterprise.inject.spi.ProcessProducerMethod;
 import javax.enterprise.inject.spi.ProcessSessionBean;
-import javax.enterprise.util.TypeLiteral;
 import javax.inject.Inject;
 import javax.inject.Named;
-import javax.inject.Provider;
 import javax.inject.Scope;
 import javax.interceptor.AroundInvoke;
 import javax.interceptor.AroundTimeout;
@@ -156,24 +153,6 @@ public final class WebBeansUtil
      */
     private static volatile Boolean enforceCheckedException;
 
-    private final static Class<Instance<?>> INSTANCE_TYPE
-            = new TypeLiteral<Instance<?>>()
-    {
-        private static final long serialVersionUID = 3555319035805031154L;
-    }.getRawType();
-
-    private final static Class<Provider<?>> PROVIDER_TYPE
-            = new TypeLiteral<Provider<?>>()
-    {
-        private static final long serialVersionUID = -2611190564495920054L;
-    }.getRawType();
-
-    private final static Class<Event<?>>    EVENT_TYPE
-            = new TypeLiteral<Event<?>>()
-    {
-        private static final long serialVersionUID = -1395145871249763477L;
-    }.getRawType();
-
     private final WebBeansContext webBeansContext;
 
     public WebBeansUtil(WebBeansContext webBeansContext)
@@ -2518,31 +2497,6 @@ public final class WebBeansUtil
         }
     }
 
-    public <T> ManagedBean<T> defineInterceptor(AnnotatedType<T> annotatedType)
-    {
-        Class<?> clazz = annotatedType.getJavaClass();
-        if (webBeansContext.getInterceptorsManager().isInterceptorClassEnabled(clazz))
-        {
-            ManagedBean<T> delegate = null;
-
-            webBeansContext.getInterceptorUtil().checkAnnotatedTypeInterceptorConditions(annotatedType);
-            delegate = defineManagedBean(annotatedType);
-
-            if (delegate != null)
-            {
-                Set<Annotation> annTypeSet = annotatedType.getAnnotations();
-                Annotation[] anns = annTypeSet.toArray(new Annotation[annTypeSet.size()]);
-                AnnotationManager annotationManager = webBeansContext.getAnnotationManager();
-                webBeansContext.getWebBeansInterceptorConfig().configureInterceptorClass(delegate,
-                                                               annotationManager.getInterceptorBindingMetaAnnotations(anns));
-            }
-            return delegate;
-        }
-        else
-        {
-            return null;
-        }
-    }
 
     /**
      * Checks the implementation class for checking conditions.