openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r790983 - in /incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise: event/ inject/spi/
Date Fri, 03 Jul 2009 18:59:24 GMT
Author: gerdogdu
Date: Fri Jul  3 18:59:24 2009
New Revision: 790983

URL: http://svn.apache.org/viewvc?rev=790983&view=rev
Log:
Adding Portable APIs.

Added:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java
  (with props)
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java
  (with props)
Modified:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ObserverMethod.java

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,27 @@
+/*
+ * 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 javax.enterprise.event;
+
+/**
+ * Notify enums.
+ * 
+ * @version $Rev$ $Date$
+ *
+ */
+public enum Notify
+{
+    SYNCHRONOUSLY,    
+    ASYNCHRONOUSLY,
+    IF_EXISTS    
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/Notify.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,30 @@
+/*
+ * 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 javax.enterprise.event;
+
+/**
+ * Transactional observer phases.
+ * Observers are notified on trnasaction phases.
+ * 
+ * @version $Rev$ $Date$
+ *
+ */
+public enum TransactionPhase
+{
+    IN_PROGRESS,
+    BEFORE_COMPLETION,
+    AFTER_COMPLETION,
+    AFTER_FAILURE,
+    AFTER_SUCCESS
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/event/TransactionPhase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,32 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Event that is fired after container
+ * validates all injection points are valid.
+ * 
+ * @version $Rev$ $Date$
+ *
+ */
+public interface AfterDeploymentValidation
+{
+    /**
+     * Add deployment problem that causes
+     * container aborts processing after validation.
+     * 
+     * @param t throwable
+     */
+    public void addDeploymentProblem(Throwable t);
+}
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/AfterDeploymentValidation.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,26 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Event is fired before shut down of the
+ * container.
+ * 
+ * @version $Rev$ $Date$
+ *
+ */
+public interface BeforeShutdown
+{
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/BeforeShutdown.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ObserverMethod.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ObserverMethod.java?rev=790983&r1=790982&r2=790983&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ObserverMethod.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ObserverMethod.java
Fri Jul  3 18:59:24 2009
@@ -13,7 +13,25 @@
  */
 package javax.enterprise.inject.spi;
 
-public class ObserverMethod<T,K>
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Type;
+import java.util.Set;
+
+import javax.enterprise.event.Notify;
+import javax.enterprise.event.TransactionPhase;
+
+public interface ObserverMethod<X,T>
 {
+    public Bean<X> getBean();
+    
+    public Type getObservedType();
+    
+    public Set<Annotation> getObservedBindings();
+    
+    public Notify getNotify();
+    
+    public TransactionPhase getTransactionPhase();
+
+    public void notify(T event);    
 
 }

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,44 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Event is fired before reading any annotations on the class.
+ * 
+ * @version $Rev$ $Date$
+ *
+ *  <X> class type
+ */
+public interface ProcessAnnotatedType<X>
+{
+    /**
+     * Gets annotated type.
+     * 
+     * @return annotated type
+     */
+    public AnnotatedType<X> getAnnotatedType();
+    
+    /**
+     * Replaces annotated type.
+     * 
+     * @param type annotated type
+     */
+    public void setAnnotatedType(AnnotatedType<X> type);
+    
+    /**
+     * Veto registering process.
+     */
+    public void veto();    
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessAnnotatedType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,46 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fires event before registering bean with container.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class
+ */
+public interface ProcessBean<X>
+{
+    /**
+     * Returns annotated.
+     * 
+     * @return annotated
+     */
+    public Annotated getAnnotated();
+    
+    /**
+     * Returns bean instance.
+     * 
+     * @return bean
+     */
+    public Bean<X> getBean();
+
+    /**
+     * Aborts processing.
+     * 
+     * @param t throwable
+     */
+    public void addDefinitionError(Throwable t);
+
+}
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,56 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fired before manged bean, session bean or Java EE
+ * component discovery.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> class type info
+ */
+public interface ProcessInjectionTarget<X>
+{
+    /**
+     * Gets annotated type.
+     * 
+     * @return annotated type
+     */
+    public AnnotatedType<X> getAnnotatedType();
+
+    /**
+     * Returns injection target.
+     * 
+     * @return injection target
+     */
+    public InjectionTarget<X> getInjectionTarget();
+    
+    /**
+     * Replaces injection target.
+     * 
+     * @param injectionTarget new injection target
+     */
+    public void setInjectionTarget(InjectionTarget<X> injectionTarget);
+
+    /**
+     * Adding definition error. Container aborts
+     * processing after calling all observers.
+     * 
+     * @param t throwable
+     */
+    public void addDefinitionError(Throwable t);
+
+
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessInjectionTarget.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,31 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fired before registering managed bean.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class
+ */
+public interface ProcessManagedBean<X> extends ProcessBean<X>
+{
+    /**
+     * Returns annotated type.
+     * 
+     * @return annotated type
+     */
+    public AnnotatedType<X> getAnnotatedBeanClass();
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessManagedBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,48 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fired for each observer.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class
+ * @param <T> observed event type
+ */
+public interface ProcessObserverMethod<X, T>
+{
+    /**
+     * Returns annotated method.
+     * 
+     * @return annotated method
+     */
+    public AnnotatedMethod<X> getAnnotatedMethod();
+    
+    /**
+     * Returns observer method instance that
+     * is called by the container on event. 
+     * 
+     * @return observer method instance
+     */
+    public ObserverMethod<X,T> getObserverMethod();
+
+    /**
+     * Add throwable.
+     * 
+     * @param t throwable
+     */
+    public void addDefinitionError(Throwable t);
+    
+}
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessObserverMethod.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,56 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Container fires this event for each
+ * producer field/method including resources.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class info
+ * @param <T> producer return type
+ */
+public interface ProcessProducer<X, T>
+{
+    /**
+     * Returns annotated member.
+     * 
+     * @return annotated member
+     */
+    public AnnotatedMember<X> getAnnotatedMember();
+    
+    /**
+     * Returns producer instance.
+     * 
+     * @return producer instance
+     */
+    public Producer<T> getProducer();
+    
+    /**
+     * Replaces producer instance.
+     * 
+     * @param producer new producer
+     */
+    public void setProducer(Producer<T> producer);
+
+    /**
+     * Adding definition error. Container aborts processing.
+     * 
+     * @param t throwable
+     */
+    public void addDefinitionError(Throwable t);
+    
+
+}
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,32 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fired before registering producer field.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class
+ * @param <T> producer field return type
+ */
+public interface ProcessProducerField<X, T> extends ProcessBean<X>
+{
+    /**
+     * Returns annotated field.
+     * 
+     * @return annotated field.
+     */
+    public AnnotatedField<X> getAnnotatedProducerField();    
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerField.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,39 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fired before registering producer method.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class
+ * @param <T> producer return type
+ */
+public interface ProcessProducerMethod<X, T> extends ProcessBean<X>
+{
+    /**
+     * Returns annotated method.
+     * 
+     * @return annotated method
+     */
+    public AnnotatedMethod<X> getAnnotatedProducerMethod();
+
+    /**
+     * Returns annotated parameter.
+     * 
+     * @return annotated parameter.
+     */
+    public AnnotatedParameter<X> getAnnotatedDisposedParameter();
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessProducerMethod.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,46 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Fires event before registering session bean.
+ * 
+ * @version $Rev$ $Date$
+ *
+ * @param <X> bean class
+ */
+public interface ProcessSessionBean<X> extends ProcessBean<Object>
+{
+    /**
+     * Returns annotated type.
+     * 
+     * @return annotated bean class
+     */
+    public AnnotatedType<X> getAnnotatedBeanClass();
+    
+    /**
+     * Returns ejb name.
+     * 
+     * @return ejb name
+     */
+    public String getEjbName();
+    
+    /**
+     * Returns ejb type.
+     * 
+     * @return ejb type.
+     */
+    public SessionBeanType getSessionBeanType();    
+
+}
\ No newline at end of file

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/ProcessSessionBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java?rev=790983&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java
(added)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java
Fri Jul  3 18:59:24 2009
@@ -0,0 +1,25 @@
+/*
+ * 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 javax.enterprise.inject.spi;
+
+/**
+ * Session bean type enumerations.
+ * 
+ * @version $Rev$ $Date$
+ *
+ */
+public enum SessionBeanType
+{
+    STATELESS, STATEFUL, SINGLETON
+}

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/enterprise/inject/spi/SessionBeanType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message