[webbeans-commits] Webbeans SVN: r3629 - in ri/branches/PFD2_330_PREVIEW: impl/src/main/java/org/jboss/webbeans/literal and 1 other directory.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Mon Aug 31 18:55:53 EDT 2009


Author: rogerk
Date: 2009-08-31 18:55:53 -0400 (Mon, 31 Aug 2009)
New Revision: 3629

Added:
   ri/branches/PFD2_330_PREVIEW/api/src/main/java/javax/enterprise/inject/Default.java
   ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/InjectLiteral.java
   ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/NormalScopeLiteral.java
Log:
missing classes from trunk

Added: ri/branches/PFD2_330_PREVIEW/api/src/main/java/javax/enterprise/inject/Default.java
===================================================================
--- ri/branches/PFD2_330_PREVIEW/api/src/main/java/javax/enterprise/inject/Default.java	                        (rev 0)
+++ ri/branches/PFD2_330_PREVIEW/api/src/main/java/javax/enterprise/inject/Default.java	2009-08-31 22:55:53 UTC (rev 3629)
@@ -0,0 +1,44 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, Red Hat Middleware LLC, and individual contributors
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* Licensed 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;
+
+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;
+
+import javax.inject.Qualifier;
+
+/**
+ * The default binding type.
+ * 
+ * @author Pete Muir
+ */
+
+ at Target( { TYPE, METHOD, PARAMETER, FIELD })
+ at Retention(RUNTIME)
+ at Documented
+ at Qualifier
+public @interface Default
+{
+}

Added: ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/InjectLiteral.java
===================================================================
--- ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/InjectLiteral.java	                        (rev 0)
+++ ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/InjectLiteral.java	2009-08-31 22:55:53 UTC (rev 3629)
@@ -0,0 +1,27 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.webbeans.literal;
+
+import javax.enterprise.inject.AnnotationLiteral;
+import javax.inject.Inject;
+
+/**
+ * Annotation literal for @Inject
+ * 
+ * @author Pete Muir
+ */
+public class InjectLiteral extends AnnotationLiteral<Inject> implements Inject {}

Added: ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/NormalScopeLiteral.java
===================================================================
--- ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/NormalScopeLiteral.java	                        (rev 0)
+++ ri/branches/PFD2_330_PREVIEW/impl/src/main/java/org/jboss/webbeans/literal/NormalScopeLiteral.java	2009-08-31 22:55:53 UTC (rev 3629)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.webbeans.literal;
+
+import javax.enterprise.context.NormalScope;
+import javax.enterprise.inject.AnnotationLiteral;
+
+public class NormalScopeLiteral extends AnnotationLiteral<NormalScope> implements NormalScope
+{
+   
+   private final boolean passivating;
+   
+   public NormalScopeLiteral(boolean passivating)
+   {
+      this.passivating = passivating;
+   }
+
+   public boolean passivating()
+   {
+      return passivating;
+   }
+   
+}
\ No newline at end of file




More information about the weld-commits mailing list