openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1797336 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/
Date Fri, 02 Jun 2017 09:11:29 GMT
Author: struberg
Date: Fri Jun  2 09:11:29 2017
New Revision: 1797336

URL: http://svn.apache.org/viewvc?rev=1797336&view=rev
Log:
OWB-1187 start with empty Configurators

Added:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedConstructorConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedFieldConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedMethodConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedParameterConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedTypeConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanAttributesConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/InjectionPointConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ObserverMethodConfiguratorImpl.java
  (with props)
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ProducerConfiguratorImpl.java
  (with props)

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedConstructorConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedConstructorConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedConstructorConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedConstructorConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.AnnotatedConstructor;
+import javax.enterprise.inject.spi.configurator.AnnotatedConstructorConfigurator;
+import javax.enterprise.inject.spi.configurator.AnnotatedParameterConfigurator;
+import java.lang.annotation.Annotation;
+import java.util.List;
+import java.util.function.Predicate;
+import java.util.stream.Stream;
+
+public class AnnotatedConstructorConfiguratorImpl implements AnnotatedConstructorConfigurator
+{
+    @Override
+    public AnnotatedConstructor getAnnotated()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedConstructorConfigurator add(Annotation annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedConstructorConfigurator remove(Predicate annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedConstructorConfigurator removeAll()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public List<AnnotatedParameterConfigurator> params()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Stream<AnnotatedParameterConfigurator> filterParams(Predicate predicate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedConstructorConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedFieldConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedFieldConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedFieldConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedFieldConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.AnnotatedField;
+import javax.enterprise.inject.spi.configurator.AnnotatedFieldConfigurator;
+import java.lang.annotation.Annotation;
+import java.util.function.Predicate;
+
+public class AnnotatedFieldConfiguratorImpl implements AnnotatedFieldConfigurator
+{
+    @Override
+    public AnnotatedField getAnnotated()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedFieldConfigurator add(Annotation annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedFieldConfigurator remove(Predicate annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedFieldConfigurator removeAll()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedFieldConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedMethodConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedMethodConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedMethodConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedMethodConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.AnnotatedMethod;
+import javax.enterprise.inject.spi.configurator.AnnotatedMethodConfigurator;
+import javax.enterprise.inject.spi.configurator.AnnotatedParameterConfigurator;
+import java.lang.annotation.Annotation;
+import java.util.List;
+import java.util.function.Predicate;
+import java.util.stream.Stream;
+
+public class AnnotatedMethodConfiguratorImpl implements AnnotatedMethodConfigurator
+{
+    @Override
+    public AnnotatedMethod getAnnotated()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedMethodConfigurator add(Annotation annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedMethodConfigurator remove(Predicate annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedMethodConfigurator removeAll()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public List<AnnotatedParameterConfigurator> params()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Stream<AnnotatedParameterConfigurator> filterParams(Predicate predicate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedMethodConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedParameterConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedParameterConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedParameterConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedParameterConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.AnnotatedParameter;
+import javax.enterprise.inject.spi.configurator.AnnotatedParameterConfigurator;
+import java.lang.annotation.Annotation;
+import java.util.function.Predicate;
+
+public class AnnotatedParameterConfiguratorImpl implements AnnotatedParameterConfigurator
+{
+    @Override
+    public AnnotatedParameter getAnnotated()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedParameterConfigurator add(Annotation annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedParameterConfigurator remove(Predicate annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedParameterConfigurator removeAll()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedParameterConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedTypeConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedTypeConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedTypeConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedTypeConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.AnnotatedType;
+import javax.enterprise.inject.spi.configurator.AnnotatedConstructorConfigurator;
+import javax.enterprise.inject.spi.configurator.AnnotatedFieldConfigurator;
+import javax.enterprise.inject.spi.configurator.AnnotatedMethodConfigurator;
+import javax.enterprise.inject.spi.configurator.AnnotatedTypeConfigurator;
+import java.lang.annotation.Annotation;
+import java.util.Set;
+import java.util.function.Predicate;
+import java.util.stream.Stream;
+
+public class AnnotatedTypeConfiguratorImpl implements AnnotatedTypeConfigurator
+{
+    @Override
+    public AnnotatedType getAnnotated()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedTypeConfigurator add(Annotation annotation)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedTypeConfigurator remove(Predicate predicate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public AnnotatedTypeConfigurator removeAll()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Set<AnnotatedMethodConfigurator> methods()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Stream<AnnotatedMethodConfigurator> filterMethods(Predicate predicate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Set<AnnotatedFieldConfigurator> fields()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Stream<AnnotatedFieldConfigurator> filterFields(Predicate predicate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Set<AnnotatedConstructorConfigurator> constructors()
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public Stream<AnnotatedConstructorConfigurator> filterConstructors(Predicate predicate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/AnnotatedTypeConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanAttributesConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanAttributesConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanAttributesConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanAttributesConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,136 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.configurator.BeanAttributesConfigurator;
+import javax.enterprise.util.TypeLiteral;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.util.Set;
+
+public class BeanAttributesConfiguratorImpl implements BeanAttributesConfigurator
+{
+    @Override
+    public BeanAttributesConfigurator addType(Type type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addType(TypeLiteral typeLiteral)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addTypes(Type... types)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addTypes(Set set)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addTransitiveTypeClosure(Type type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator types(Type... types)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator types(Set set)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator scope(Class scope)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addQualifier(Annotation qualifier)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addQualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addQualifiers(Set qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator qualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator qualifiers(Set qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addStereotype(Class stereotype)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator addStereotypes(Set stereotypes)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator stereotypes(Set stereotypes)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator name(String name)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanAttributesConfigurator alternative(boolean value)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanAttributesConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,222 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.context.spi.CreationalContext;
+import javax.enterprise.inject.Instance;
+import javax.enterprise.inject.spi.AnnotatedType;
+import javax.enterprise.inject.spi.BeanAttributes;
+import javax.enterprise.inject.spi.InjectionPoint;
+import javax.enterprise.inject.spi.configurator.BeanConfigurator;
+import javax.enterprise.util.TypeLiteral;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.util.Set;
+import java.util.function.BiConsumer;
+import java.util.function.Function;
+
+public class BeanConfiguratorImpl<T> implements BeanConfigurator<T>
+{
+
+    @Override
+    public BeanConfigurator<T> beanClass(Class<?> beanClass)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addInjectionPoint(InjectionPoint injectionPoint)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addInjectionPoints(InjectionPoint... injectionPoints)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addInjectionPoints(Set<InjectionPoint> injectionPoints)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> injectionPoints(InjectionPoint... injectionPoints)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> injectionPoints(Set<InjectionPoint> injectionPoints)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> id(String id)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public <U extends T> BeanConfigurator<U> createWith(Function<CreationalContext<U>,
U> callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public <U extends T> BeanConfigurator<U> produceWith(Function<Instance<Object>,
U> callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> destroyWith(BiConsumer<T, CreationalContext<T>>
callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> disposeWith(BiConsumer<T, Instance<Object>>
callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public <U extends T> BeanConfigurator<U> read(AnnotatedType<U> type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> read(BeanAttributes<?> beanAttributes)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addType(Type type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addType(TypeLiteral<?> typeLiteral)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addTypes(Type... types)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addTypes(Set<Type> types)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addTransitiveTypeClosure(Type type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> types(Type... types)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> types(Set<Type> types)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> scope(Class<? extends Annotation> scope)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addQualifier(Annotation qualifier)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addQualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addQualifiers(Set<Annotation> qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> qualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> qualifiers(Set<Annotation> qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addStereotype(Class<? extends Annotation> stereotype)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> addStereotypes(Set<Class<? extends Annotation>>
stereotypes)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> stereotypes(Set<Class<? extends Annotation>>
stereotypes)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> name(String name)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public BeanConfigurator<T> alternative(boolean value)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/BeanConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/InjectionPointConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/InjectionPointConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/InjectionPointConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/InjectionPointConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.configurator.InjectionPointConfigurator;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.util.Set;
+
+public class InjectionPointConfiguratorImpl implements InjectionPointConfigurator
+{
+    @Override
+    public InjectionPointConfigurator type(Type requiredType)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator addQualifier(Annotation qualifier)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator addQualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator addQualifiers(Set<Annotation> qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator qualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator qualifiers(Set<Annotation> qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator delegate(boolean delegate)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public InjectionPointConfigurator transientField(boolean trans)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/InjectionPointConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ObserverMethodConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ObserverMethodConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ObserverMethodConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ObserverMethodConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,122 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.event.Reception;
+import javax.enterprise.event.TransactionPhase;
+import javax.enterprise.inject.spi.AnnotatedMethod;
+import javax.enterprise.inject.spi.ObserverMethod;
+import javax.enterprise.inject.spi.configurator.ObserverMethodConfigurator;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Method;
+import java.lang.reflect.Type;
+import java.util.Set;
+
+public class ObserverMethodConfiguratorImpl implements ObserverMethodConfigurator
+{
+    @Override
+    public ObserverMethodConfigurator read(Method method)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator read(AnnotatedMethod method)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator read(ObserverMethod method)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator beanClass(Class type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator observedType(Type type)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator addQualifier(Annotation qualifier)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator addQualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator addQualifiers(Set qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator qualifiers(Annotation... qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator qualifiers(Set qualifiers)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator reception(Reception reception)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator transactionPhase(TransactionPhase transactionPhase)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator priority(int priority)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator notifyWith(EventConsumer callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ObserverMethodConfigurator async(boolean async)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ObserverMethodConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ProducerConfiguratorImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ProducerConfiguratorImpl.java?rev=1797336&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ProducerConfiguratorImpl.java
(added)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ProducerConfiguratorImpl.java
Fri Jun  2 09:11:29 2017
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.configurator;
+
+import javax.enterprise.inject.spi.configurator.ProducerConfigurator;
+import java.util.function.Consumer;
+import java.util.function.Function;
+
+public class ProducerConfiguratorImpl implements ProducerConfigurator
+{
+    @Override
+    public ProducerConfigurator produceWith(Function callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+
+    @Override
+    public ProducerConfigurator disposeWith(Consumer callback)
+    {
+        throw new UnsupportedOperationException("TODO implement CDI 2.0");
+    }
+}

Propchange: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/configurator/ProducerConfiguratorImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message