[geronimo-interceptor-3.0-spec] 01/02: Added the missing Interceptor and InterceptorBinding annotations
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Oct 21 19:55:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository geronimo-interceptor-3.0-spec.
commit eea8b337e3098f3e55a61f36f50de963005d66e0
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Wed Oct 21 21:51:46 2015 +0200
Added the missing Interceptor and InterceptorBinding annotations
---
debian/changelog | 8 +++
debian/patches/01-add-missing-types.patch | 101 ++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 110 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 05f605d..0aeb0ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+geronimo-interceptor-3.0-spec (1.0.1-3) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Added the missing javax.interceptor.Interceptor and InterceptorBinding
+ annotations.
+
+ -- Emmanuel Bourg <ebourg at apache.org> Thu, 08 Oct 2015 23:50:42 +0200
+
geronimo-interceptor-3.0-spec (1.0.1-2) unstable; urgency=medium
* Team upload.
diff --git a/debian/patches/01-add-missing-types.patch b/debian/patches/01-add-missing-types.patch
new file mode 100644
index 0000000..c1073cf
--- /dev/null
+++ b/debian/patches/01-add-missing-types.patch
@@ -0,0 +1,101 @@
+Description: Add missing types found in the version 1.2 of the interceptor API
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- /dev/null
++++ b/src/main/java/javax/interceptor/Interceptor.java
+@@ -0,0 +1,53 @@
++/*
++ * 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.interceptor;
++
++import java.lang.annotation.Documented;
++import static java.lang.annotation.ElementType.TYPE;
++import static java.lang.annotation.RetentionPolicy.RUNTIME;
++
++import java.lang.annotation.Retention;
++import java.lang.annotation.Target;
++
++/**
++ * Annotation for used defining the interceptors.
++ */
++ at Retention(RUNTIME)
++ at Target({TYPE})
++ at Documented
++public @interface Interceptor
++{
++ /**
++ * A set of default priorities which can be used by
++ * Interceptors via {@code @javax.annotation.Priority}.
++ * Interceptors with smaller priority values are called before
++ * Interceptors with bigger priority numbers.
++ */
++ public static class Priority {
++ public static final int PLATFORM_BEFORE = 0;
++ public static final int LIBRARY_BEFORE = 1000;
++ public static final int APPLICATION = 2000;
++ public static final int LIBRARY_AFTER = 3000;
++ public static final int PLATFORM_AFTER = 4000;
++
++ private Priority() {
++ // no-op
++ }
++ }
++}
+--- /dev/null
++++ b/src/main/java/javax/interceptor/InterceptorBinding.java
+@@ -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.interceptor;
++
++import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
++import static java.lang.annotation.RetentionPolicy.RUNTIME;
++
++import java.lang.annotation.Documented;
++import java.lang.annotation.Retention;
++import java.lang.annotation.Target;
++
++/**
++ * Defines bindings for interceptors.
++ *
++ * @version $Rev$ $Id: InterceptorBindingType.java 782259 2009-06-06 13:31:32Z gerdogdu $
++ */
++ at Target(ANNOTATION_TYPE)
++ at Retention(RUNTIME)
++ at Documented
++public @interface InterceptorBinding
++{
++
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..da08b39
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-add-missing-types.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/geronimo-interceptor-3.0-spec.git
More information about the pkg-java-commits
mailing list