Author: pete.muir(a)jboss.org
Date: 2008-06-23 12:52:09 -0400 (Mon, 23 Jun 2008)
New Revision: 10
Added:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/BoundTo.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Component.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ComponentInstance.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Container.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Context.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Destroys.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/DynamicBinding.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/EventBindingType.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/New.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observer.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ObserverException.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observes.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Produces.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ScopeType.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Specializes.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Stereotype.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
Log:
Initial work on creating API classes
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,20 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface ApplicationScoped
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ApplicationScoped.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface BindingType
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/BindingType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/BoundTo.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/BoundTo.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/BoundTo.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,18 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface BoundTo
+{
+
+ public String value();
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/BoundTo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Component.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Component.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Component.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,19 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Production
+@Stereotype
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+public @interface Component
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Component.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ComponentInstance.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ComponentInstance.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ComponentInstance.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,22 @@
+package javax.webbeans;
+
+import java.lang.annotation.Annotation;
+import java.util.Set;
+
+/**
+ * Argh, this is not the name in the spec but then we have two classes called
+ * Component
+ */
+public abstract class ComponentInstance<T>
+{
+
+ public abstract Set<Class> getTypes();
+ public abstract Set<Annotation> getBindingTypes();
+ public abstract Annotation getScopeType();
+ public abstract Annotation getComponentType();
+ public abstract String getName();
+
+ public abstract T create(Container container);
+ public abstract void destroy(Container container, T instance);
+
+}
\ No newline at end of file
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ComponentInstance.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Container.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Container.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Container.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,37 @@
+package javax.webbeans;
+
+import java.lang.annotation.Annotation;
+import java.util.Set;
+
+public interface Container
+{
+
+ public <T> T getInstanceByType(Class<T> type, Annotation...
bindingTypes);
+
+ public <T> T getInstanceByType(TypeLiteral<T> type,
+ Annotation... bindingTypes);
+
+ public <T> T resolveByType(Class<T> apiType, Annotation... bindingTypes);
+
+ public <T> T resolveByType(TypeLiteral<T> apiType,
+ Annotation... bindingTypes);
+
+ public Object getInstanceByName(String name);
+
+ public Set<ComponentInstance> resolveByName(String name);
+
+ public void fireEvent(Object event, Annotation... bindings);
+
+ public void addObserver(Observer observer);
+
+ public void removeObserver(Observer observer);
+
+ public <T> Set<Observer<T>> resolveObservers(T event, Annotation...
bindings);
+
+ public void addContext(Context context);
+
+ public Context getContext(Class<Annotation> scopeType);
+
+ public Container addComponent(ComponentInstance component);
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Container.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Context.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Context.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Context.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,13 @@
+package javax.webbeans;
+
+import java.lang.annotation.Annotation;
+
+public interface Context
+{
+
+ public Class<Annotation> getScopeType();
+
+ public <T> T get(Container container, ComponentInstance<T> component,
boolean create);
+
+ public <T> void remove(Container container, ComponentInstance<T>
component);
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Context.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
(rev 0)
+++
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,25 @@
+package javax.webbeans;
+
+public class ContextNotActiveException extends RuntimeException
+{
+
+ public ContextNotActiveException()
+ {
+ }
+
+ public ContextNotActiveException(String message)
+ {
+ super(message);
+ }
+
+ public ContextNotActiveException(Throwable cause)
+ {
+ super(cause);
+ }
+
+ public ContextNotActiveException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ContextNotActiveException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,8 @@
+package javax.webbeans;
+
+public interface Conversation
+{
+
+ public void begin();
+ public void end();
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Conversation.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,20 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface ConversationScoped
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ConversationScoped.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,18 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+@ScopeType
+public @interface Current
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Current.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(FIELD)
+@Retention(RUNTIME)
+@Documented
+public @interface Decorates
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorates.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface Decorator
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Decorator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,20 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface Dependent
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Dependent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface DeploymentType
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/DeploymentType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Destroys.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Destroys.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Destroys.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(METHOD)
+@Retention(RUNTIME)
+@Documented
+public @interface Destroys
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Destroys.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(PARAMETER)
+@Retention(RUNTIME)
+@Documented
+public @interface Disposes
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Disposes.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/DynamicBinding.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/DynamicBinding.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/DynamicBinding.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,6 @@
+package javax.webbeans;
+
+public class DynamicBinding<T>
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/DynamicBinding.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java 2008-06-23 16:52:09 UTC
(rev 10)
@@ -0,0 +1,10 @@
+package javax.webbeans;
+
+import java.lang.annotation.Annotation;
+
+public interface Event<T>
+{
+
+ public void fire(T event, Annotation... bindings);
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Event.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/EventBindingType.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/EventBindingType.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/EventBindingType.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface EventBindingType
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/EventBindingType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(PARAMETER)
+@Retention(RUNTIME)
+@Documented
+public @interface IfExists
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/IfExists.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(METHOD)
+@Retention(RUNTIME)
+@Documented
+public @interface Initializer
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Initializer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java
(rev 0)
+++
ri/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface InterceptorBindingType
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/InterceptorBindingType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java 2008-06-23 16:52:09 UTC
(rev 10)
@@ -0,0 +1,21 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Named
+@RequestScoped
+@Production
+@Stereotype
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+public @interface Model
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Model.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java 2008-06-23 16:52:09 UTC
(rev 10)
@@ -0,0 +1,19 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+public @interface Named
+{
+
+ public String value() default "";
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Named.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/New.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/New.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/New.java 2008-06-23 16:52:09 UTC
(rev 10)
@@ -0,0 +1,20 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface New
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/New.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observer.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observer.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observer.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,14 @@
+package javax.webbeans;
+
+import java.lang.annotation.Annotation;
+import java.util.Set;
+
+public interface Observer<T>
+{
+
+ public Class<T> getEventType();
+ public Set<Annotation> getEventBindingTypes();
+
+ public void notify(Container container, T event);
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ObserverException.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ObserverException.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ObserverException.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,26 @@
+package javax.webbeans;
+
+public class ObserverException extends RuntimeException
+{
+
+ public ObserverException()
+ {
+
+ }
+
+ public ObserverException(String message)
+ {
+ super(message);
+ }
+
+ public ObserverException(Throwable cause)
+ {
+ super(cause);
+ }
+
+ public ObserverException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/ObserverException.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observes.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observes.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observes.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(PARAMETER)
+@Retention(RUNTIME)
+@Documented
+public @interface Observes
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observes.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Produces.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Produces.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Produces.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(METHOD)
+@Retention(RUNTIME)
+@Documented
+public @interface Produces
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Produces.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,18 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+@DeploymentType
+public @interface Production
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Production.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,20 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface RequestScoped
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/RequestScoped.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ScopeType.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/ScopeType.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/ScopeType.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface ScopeType
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/ScopeType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,20 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { METHOD, FIELD, PARAMETER, TYPE })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+public @interface SessionScoped
+{
+
+}
Property changes on:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/SessionScoped.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Specializes.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Specializes.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Specializes.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,17 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+public @interface Specializes
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Specializes.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,18 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target( { TYPE, METHOD })
+@Retention(RUNTIME)
+@Documented
+@DeploymentType
+public @interface Standard
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Standard.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Stereotype.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Stereotype.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Stereotype.java 2008-06-23 16:52:09
UTC (rev 10)
@@ -0,0 +1,16 @@
+package javax.webbeans;
+
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(TYPE)
+@Retention(RUNTIME)
+@Documented
+public @interface Stereotype
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Stereotype.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
(rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java 2008-06-23
16:52:09 UTC (rev 10)
@@ -0,0 +1,6 @@
+package javax.webbeans;
+
+public class TypeLiteral<T>
+{
+
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain