openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsandt...@apache.org
Subject svn commit: r1796318 - in /openwebbeans/trunk/webbeans-impl/src: main/java/org/apache/webbeans/container/ main/java/org/apache/webbeans/event/ main/java/org/apache/webbeans/portable/events/ main/java/org/apache/webbeans/portable/events/discovery/ test/...
Date Fri, 26 May 2017 18:01:51 GMT
Author: rsandtner
Date: Fri May 26 18:01:51 2017
New Revision: 1796318

URL: http://svn.apache.org/viewvc?rev=1796318&view=rev
Log:
OWB-1182 added missing cdi-2.0 methods

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectableBeanManager.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/EventImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessAnnotatedTypeImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessBeanAttributesImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessProducerImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessSyntheticAnnotatedTypeImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterBeanDiscoveryImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterTypeDiscoveryImpl.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/BeforeBeanDiscoveryImpl.java
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/mock/MockManager.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Fri May 26 18:01:51 2017
@@ -42,8 +42,10 @@ import javax.enterprise.context.spi.Alte
 import javax.enterprise.context.spi.Context;
 import javax.enterprise.context.spi.Contextual;
 import javax.enterprise.context.spi.CreationalContext;
+import javax.enterprise.event.Event;
 import javax.enterprise.inject.Default;
 import javax.enterprise.inject.InjectionException;
+import javax.enterprise.inject.Instance;
 import javax.enterprise.inject.Stereotype;
 import javax.enterprise.inject.Vetoed;
 import javax.enterprise.inject.spi.*;
@@ -339,6 +341,13 @@ public class BeanManagerImpl implements
         return found;
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public Instance<Object> createInstance()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet implemented");
+    }
+
     /**
      * Add new bean to the BeanManager.
      * This will also set OWBs {@link #inUse} status.
@@ -454,6 +463,13 @@ public class BeanManagerImpl implements
         fireEvent(event, false, bindings);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public Event<Object> getEvent()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     public void fireEvent(Object event, boolean containerEvent, Annotation... bindings)
     {
         Type type = event.getClass();
@@ -1175,6 +1191,13 @@ public class BeanManagerImpl implements
         return injectionResolver.resolve(beans, null);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T> InterceptionFactory<T> createInterceptionFactory(CreationalContext<T>
creationalContext, Class<T> clazz)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet implemented");
+    }
+
     /**
      * {@inheritDoc}
      */

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectableBeanManager.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectableBeanManager.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectableBeanManager.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectableBeanManager.java
Fri May 26 18:01:51 2017
@@ -33,6 +33,8 @@ import javax.el.ExpressionFactory;
 import javax.enterprise.context.spi.Context;
 import javax.enterprise.context.spi.Contextual;
 import javax.enterprise.context.spi.CreationalContext;
+import javax.enterprise.event.Event;
+import javax.enterprise.inject.Instance;
 import javax.enterprise.inject.spi.AnnotatedField;
 import javax.enterprise.inject.spi.AnnotatedMember;
 import javax.enterprise.inject.spi.AnnotatedMethod;
@@ -46,6 +48,7 @@ import javax.enterprise.inject.spi.Exten
 import javax.enterprise.inject.spi.InjectionPoint;
 import javax.enterprise.inject.spi.InjectionTarget;
 import javax.enterprise.inject.spi.InjectionTargetFactory;
+import javax.enterprise.inject.spi.InterceptionFactory;
 import javax.enterprise.inject.spi.InterceptionType;
 import javax.enterprise.inject.spi.Interceptor;
 import javax.enterprise.inject.spi.ObserverMethod;
@@ -107,6 +110,13 @@ public class InjectableBeanManager imple
         bm.fireEvent(event, qualifiers);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public Event<Object> getEvent()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     @Override
     public Set<Bean<?>> getBeans(String name)
     {
@@ -129,6 +139,13 @@ public class InjectableBeanManager imple
         return bm.getContext(scope);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public Instance<Object> createInstance()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     @Override
     public ELResolver getELResolver()
     {
@@ -215,6 +232,13 @@ public class InjectableBeanManager imple
         return bm.resolve(beans);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T> InterceptionFactory<T> createInterceptionFactory(CreationalContext<T>
creationalContext, Class<T> aClass)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     @Override
     public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation...
qualifiers)
     {

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/EventImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/EventImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/EventImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/EventImpl.java
Fri May 26 18:01:51 2017
@@ -23,8 +23,10 @@ import java.io.Serializable;
 import java.lang.annotation.Annotation;
 import java.lang.reflect.Type;
 import java.util.Set;
+import java.util.concurrent.CompletionStage;
 
 import javax.enterprise.event.Event;
+import javax.enterprise.event.NotificationOptions;
 import javax.enterprise.inject.spi.EventMetadata;
 import javax.enterprise.util.TypeLiteral;
 
@@ -81,6 +83,20 @@ public class EventImpl<T> implements Eve
         webBeansContext.getBeanManagerImpl().fireEvent(event, metadata.select(eventType),
false);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <U extends T> CompletionStage<U> fireAsync(U u)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <U extends T> CompletionStage<U> fireAsync(U u, NotificationOptions
notificationOptions)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     /**
      * {@inheritDoc}
      */

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessAnnotatedTypeImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessAnnotatedTypeImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessAnnotatedTypeImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessAnnotatedTypeImpl.java
Fri May 26 18:01:51 2017
@@ -20,6 +20,7 @@ package org.apache.webbeans.portable.eve
 
 import javax.enterprise.inject.spi.AnnotatedType;
 import javax.enterprise.inject.spi.ProcessAnnotatedType;
+import javax.enterprise.inject.spi.configurator.AnnotatedTypeConfigurator;
 
 /**
  * Default implementation of the {@link ProcessAnnotatedType}.
@@ -90,7 +91,14 @@ public class ProcessAnnotatedTypeImpl<X>
     {
         veto = true;
     }
-    
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public AnnotatedTypeConfigurator<X> configureAnnotatedType()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     /**
      * Returns veto status.
      * 

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessBeanAttributesImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessBeanAttributesImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessBeanAttributesImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessBeanAttributesImpl.java
Fri May 26 18:01:51 2017
@@ -21,6 +21,7 @@ package org.apache.webbeans.portable.eve
 import javax.enterprise.inject.spi.Annotated;
 import javax.enterprise.inject.spi.BeanAttributes;
 import javax.enterprise.inject.spi.ProcessBeanAttributes;
+import javax.enterprise.inject.spi.configurator.BeanAttributesConfigurator;
 
 public class ProcessBeanAttributesImpl<T> extends EventBase implements ProcessBeanAttributes<T>
 {
@@ -70,6 +71,20 @@ public class ProcessBeanAttributesImpl<T
         definitionError = throwable;
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public void ignoreFinalMethods()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public BeanAttributesConfigurator<T> configureBeanAttributes()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     public BeanAttributes<T> getAttributes()
     {
         return attributes;

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessInjectionPointImpl.java
Fri May 26 18:01:51 2017
@@ -22,6 +22,7 @@ import org.apache.webbeans.config.WebBea
 
 import javax.enterprise.inject.spi.InjectionPoint;
 import javax.enterprise.inject.spi.ProcessInjectionPoint;
+import javax.enterprise.inject.spi.configurator.InjectionPointConfigurator;
 
 /**
  * Fired for every {@link InjectionPoint} of every Java EE component class supporting injection,
@@ -71,4 +72,11 @@ public class ProcessInjectionPointImpl<T
         checkState();
         WebBeansContext.getInstance().getBeanManagerImpl().getErrorStack().pushError(t);
     }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public InjectionPointConfigurator configureInjectionPoint()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessObserverMethodImpl.java
Fri May 26 18:01:51 2017
@@ -21,6 +21,7 @@ package org.apache.webbeans.portable.eve
 import javax.enterprise.inject.spi.AnnotatedMethod;
 import javax.enterprise.inject.spi.ObserverMethod;
 import javax.enterprise.inject.spi.ProcessObserverMethod;
+import javax.enterprise.inject.spi.configurator.ObserverMethodConfigurator;
 
 import org.apache.webbeans.config.WebBeansContext;
 
@@ -56,6 +57,13 @@ public class ProcessObserverMethodImpl<T
         WebBeansContext.getInstance().getBeanManagerImpl().getErrorStack().pushError(t);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public ObserverMethodConfigurator<T> configureObserverMethod()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     /**
      * {@inheritDoc}
      */
@@ -76,4 +84,18 @@ public class ProcessObserverMethodImpl<T
         return observerMethod;
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public void setObserverMethod(ObserverMethod<T> observerMethod)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public void veto()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessProducerImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessProducerImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessProducerImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessProducerImpl.java
Fri May 26 18:01:51 2017
@@ -21,6 +21,7 @@ package org.apache.webbeans.portable.eve
 import javax.enterprise.inject.spi.AnnotatedMember;
 import javax.enterprise.inject.spi.ProcessProducer;
 import javax.enterprise.inject.spi.Producer;
+import javax.enterprise.inject.spi.configurator.ProducerConfigurator;
 
 import org.apache.webbeans.config.WebBeansContext;
 
@@ -56,6 +57,13 @@ public class ProcessProducerImpl<X,T> ex
         WebBeansContext.getInstance().getBeanManagerImpl().getErrorStack().pushError(t);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public ProducerConfigurator<T> configureProducer()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     /**
      * {@inheritDoc}
      */

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessSyntheticAnnotatedTypeImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessSyntheticAnnotatedTypeImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessSyntheticAnnotatedTypeImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ProcessSyntheticAnnotatedTypeImpl.java
Fri May 26 18:01:51 2017
@@ -21,6 +21,7 @@ package org.apache.webbeans.portable.eve
 import javax.enterprise.inject.spi.AnnotatedType;
 import javax.enterprise.inject.spi.Extension;
 import javax.enterprise.inject.spi.ProcessSyntheticAnnotatedType;
+import javax.enterprise.inject.spi.configurator.AnnotatedTypeConfigurator;
 
 /**
  * Default implementation of the {@link javax.enterprise.inject.spi.ProcessSyntheticAnnotatedType}.
@@ -100,6 +101,13 @@ public class ProcessSyntheticAnnotatedTy
         veto = true;
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public AnnotatedTypeConfigurator<X> configureAnnotatedType()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     /**
      * Returns veto status.
      *

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterBeanDiscoveryImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterBeanDiscoveryImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterBeanDiscoveryImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterBeanDiscoveryImpl.java
Fri May 26 18:01:51 2017
@@ -29,6 +29,8 @@ import javax.enterprise.inject.spi.Inter
 import javax.enterprise.inject.spi.ObserverMethod;
 import javax.enterprise.inject.spi.ProcessBean;
 import javax.enterprise.inject.spi.ProcessObserverMethod;
+import javax.enterprise.inject.spi.configurator.BeanConfigurator;
+import javax.enterprise.inject.spi.configurator.ObserverMethodConfigurator;
 
 import org.apache.webbeans.component.ManagedBean;
 import org.apache.webbeans.config.OWBLogConst;
@@ -241,4 +243,18 @@ public class AfterBeanDiscoveryImpl impl
         return beanManager.getAnnotatedTypes(type);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T> BeanConfigurator<T> addBean()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T> ObserverMethodConfigurator<T> addObserverMethod()
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterTypeDiscoveryImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterTypeDiscoveryImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterTypeDiscoveryImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/AfterTypeDiscoveryImpl.java
Fri May 26 18:01:51 2017
@@ -20,6 +20,7 @@ package org.apache.webbeans.portable.eve
 
 import javax.enterprise.inject.spi.AfterTypeDiscovery;
 import javax.enterprise.inject.spi.AnnotatedType;
+import javax.enterprise.inject.spi.configurator.AnnotatedTypeConfigurator;
 import java.util.List;
 
 import org.apache.webbeans.config.WebBeansContext;
@@ -80,6 +81,13 @@ public class AfterTypeDiscoveryImpl exte
         newAt.add(type);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T> AnnotatedTypeConfigurator<T> addAnnotatedType(Class<T> aClass,
String s)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     @Override
     public void setExtension(final Object instance)
     {

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/BeforeBeanDiscoveryImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/BeforeBeanDiscoveryImpl.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/BeforeBeanDiscoveryImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/discovery/BeforeBeanDiscoveryImpl.java
Fri May 26 18:01:51 2017
@@ -22,6 +22,7 @@ import java.lang.annotation.Annotation;
 
 import javax.enterprise.inject.spi.AnnotatedType;
 import javax.enterprise.inject.spi.BeforeBeanDiscovery;
+import javax.enterprise.inject.spi.configurator.AnnotatedTypeConfigurator;
 
 import org.apache.webbeans.config.WebBeansContext;
 import org.apache.webbeans.container.BeanManagerImpl;
@@ -134,6 +135,27 @@ public class BeforeBeanDiscoveryImpl imp
         beanManager.addAdditionalAnnotatedType(extension, annotatedType, id);
     }
 
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T> AnnotatedTypeConfigurator<T> addAnnotatedType(Class<T> aClass,
String s)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T extends Annotation> AnnotatedTypeConfigurator<T> configureInterceptorBinding(Class<T>
aClass)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
+    //X TODO OWB-1182 CDI 2.0
+    @Override
+    public <T extends Annotation> AnnotatedTypeConfigurator<T> configureQualifier(Class<T>
aClass)
+    {
+        throw new UnsupportedOperationException("CDI 2.0 not yet imlemented");
+    }
+
     /**
      * {@inheritDoc}
      */

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/mock/MockManager.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/mock/MockManager.java?rev=1796318&r1=1796317&r2=1796318&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/mock/MockManager.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/mock/MockManager.java
Fri May 26 18:01:51 2017
@@ -29,6 +29,8 @@ import javax.el.ExpressionFactory;
 import javax.enterprise.context.spi.Context;
 import javax.enterprise.context.spi.Contextual;
 import javax.enterprise.context.spi.CreationalContext;
+import javax.enterprise.event.Event;
+import javax.enterprise.inject.Instance;
 import javax.enterprise.inject.spi.AnnotatedField;
 import javax.enterprise.inject.spi.AnnotatedMember;
 import javax.enterprise.inject.spi.AnnotatedMethod;
@@ -42,6 +44,7 @@ import javax.enterprise.inject.spi.Exten
 import javax.enterprise.inject.spi.InjectionPoint;
 import javax.enterprise.inject.spi.InjectionTarget;
 import javax.enterprise.inject.spi.InjectionTargetFactory;
+import javax.enterprise.inject.spi.InterceptionFactory;
 import javax.enterprise.inject.spi.InterceptionType;
 import javax.enterprise.inject.spi.Interceptor;
 import javax.enterprise.inject.spi.ObserverMethod;
@@ -124,11 +127,23 @@ public class MockManager implements Bean
     }
 
     @Override
+    public Event<Object> getEvent()
+    {
+        return manager.getEvent();
+    }
+
+    @Override
     public Context getContext(Class<? extends Annotation> scopeType)
     {
         return manager.getContext(scopeType);
     }
 
+    @Override
+    public Instance<Object> createInstance()
+    {
+        return manager.createInstance();
+    }
+
     public <T> T getInstance(Bean<T> bean)
     {
         return (T) manager.getReference(bean,null, manager.createCreationalContext(bean));
@@ -280,6 +295,12 @@ public class MockManager implements Bean
     }
 
     @Override
+    public <T> InterceptionFactory<T> createInterceptionFactory(CreationalContext<T>
creationalContext, Class<T> clazz)
+    {
+        return manager.createInterceptionFactory(creationalContext, clazz);
+    }
+
+    @Override
     public void validate(InjectionPoint injectionPoint)
     {
         this.manager.validate(injectionPoint);



Mime
View raw message