You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by li...@apache.org on 2012/01/14 01:55:29 UTC
git commit: Fixing the build for weld
Updated Branches:
refs/heads/master becf0ff57 -> 060f5efdb
Fixing the build for weld
Project: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/commit/060f5efd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/tree/060f5efd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/diff/060f5efd
Branch: refs/heads/master
Commit: 060f5efdb3834dcf38d6a63b53d50032b9cc0db1
Parents: becf0ff
Author: Jason Porter <li...@apache.org>
Authored: Fri Jan 13 17:54:22 2012 -0700
Committer: Jason Porter <li...@apache.org>
Committed: Fri Jan 13 17:55:16 2012 -0700
----------------------------------------------------------------------
.../deltaspike/core/api/literal/NamedLiteral.java | 48 +++++++++++++++
.../api/metadata/NamedAnnotationRedefiner.java | 2 +-
2 files changed, 49 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/060f5efd/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/NamedLiteral.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/NamedLiteral.java b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/NamedLiteral.java
new file mode 100644
index 0000000..5aa0d89
--- /dev/null
+++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/NamedLiteral.java
@@ -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 org.apache.deltaspike.core.api.literal;
+
+import javax.enterprise.util.AnnotationLiteral;
+import javax.inject.Named;
+
+/**
+ * Literal for {@link javax.inject.Named} qualifier.
+ */
+public class NamedLiteral extends AnnotationLiteral<Named> implements Named
+{
+ private static final long serialVersionUID = -1457223276475846060L;
+
+ private final String value;
+
+ public NamedLiteral(String value)
+ {
+ this.value = value;
+ }
+
+ public NamedLiteral()
+ {
+ this.value = "";
+ }
+
+ @Override public String value()
+ {
+ return value;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-deltaspike/blob/060f5efd/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/metadata/NamedAnnotationRedefiner.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/metadata/NamedAnnotationRedefiner.java b/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/metadata/NamedAnnotationRedefiner.java
index ddf9003..5f17a90 100644
--- a/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/metadata/NamedAnnotationRedefiner.java
+++ b/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/metadata/NamedAnnotationRedefiner.java
@@ -21,10 +21,10 @@ package org.apache.deltaspike.test.api.metadata;
import org.apache.deltaspike.core.api.literal.AlternativeLiteral;
import org.apache.deltaspike.core.api.literal.ApplicationScopedLiteral;
+import org.apache.deltaspike.core.api.literal.NamedLiteral;
import org.apache.deltaspike.core.api.metadata.AnnotationRedefiner;
import org.apache.deltaspike.core.api.metadata.RedefinitionContext;
import org.apache.deltaspike.core.api.metadata.builder.AnnotationBuilder;
-import org.apache.webbeans.annotation.NamedLiteral;
import javax.inject.Named;