deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject git commit: DELTASPIKE-533 Introduce a global deltaspike qualifier
Date Thu, 06 Mar 2014 18:28:58 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 5ebbdaf00 -> 6c9524b56


DELTASPIKE-533 Introduce a global deltaspike qualifier

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/6c9524b5
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/6c9524b5
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/6c9524b5

Branch: refs/heads/master
Commit: 6c9524b56556469924e6e25730cf9c02e4ab3928
Parents: 5ebbdaf
Author: tandraschko <tandraschko@apache.org>
Authored: Thu Mar 6 19:28:42 2014 +0100
Committer: tandraschko <tandraschko@apache.org>
Committed: Thu Mar 6 19:28:42 2014 +0100

----------------------------------------------------------------------
 .../deltaspike/core/api/common/DeltaSpike.java  | 41 ++++++++++++++++++++
 .../core/api/literal/DeltaSpikeLiteral.java     | 32 +++++++++++++++
 2 files changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/6c9524b5/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/common/DeltaSpike.java
----------------------------------------------------------------------
diff --git a/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/common/DeltaSpike.java
b/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/common/DeltaSpike.java
new file mode 100644
index 0000000..5811fa1
--- /dev/null
+++ b/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/common/DeltaSpike.java
@@ -0,0 +1,41 @@
+/*
+ * 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.common;
+
+import java.lang.annotation.Documented;
+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 java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import javax.inject.Qualifier;
+
+/**
+ * Common qualifier to manage co-existence of DeltaSpike features and JavaEE features.
+ */
+@Target( { TYPE, METHOD, PARAMETER, FIELD })
+@Retention(value = RetentionPolicy.RUNTIME)
+@Documented
+@Qualifier
+public @interface DeltaSpike
+{
+
+}

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/6c9524b5/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/DeltaSpikeLiteral.java
----------------------------------------------------------------------
diff --git a/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/DeltaSpikeLiteral.java
b/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/DeltaSpikeLiteral.java
new file mode 100644
index 0000000..8d9c251
--- /dev/null
+++ b/deltaspike/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/literal/DeltaSpikeLiteral.java
@@ -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 org.apache.deltaspike.core.api.literal;
+
+import javax.enterprise.util.AnnotationLiteral;
+import org.apache.deltaspike.core.api.common.DeltaSpike;
+
+/**
+ * Literal for the {@link org.apache.deltaspike.core.api.common.DeltaSpike} annotation.
+ */
+public class DeltaSpikeLiteral extends AnnotationLiteral<DeltaSpike> implements DeltaSpike
+{
+    public static final DeltaSpike INSTANCE = new DeltaSpikeLiteral();
+    
+    private static final long serialVersionUID = 1835916508118085812L;
+}


Mime
View raw message