Repository: karaf
Updated Branches:
  refs/heads/master 14429c940 -> 2bd28679e


[KARAF-2763] Define simple injection annotations

Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/5acee177
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/5acee177
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/5acee177

Branch: refs/heads/master
Commit: 5acee1776d59c791c68d59fc786fe858cfd8eb56
Parents: 14429c9
Author: Guillaume Nodet <[email protected]>
Authored: Tue Feb 18 09:15:58 2014 +0100
Committer: Guillaume Nodet <[email protected]>
Committed: Tue Feb 18 09:15:58 2014 +0100

----------------------------------------------------------------------
 shell/console/pom.xml                           |  1 +
 .../org/apache/karaf/shell/inject/Destroy.java  | 29 ++++++++++++++++++++
 .../org/apache/karaf/shell/inject/Init.java     | 29 ++++++++++++++++++++
 .../apache/karaf/shell/inject/Reference.java    | 29 ++++++++++++++++++++
 .../org/apache/karaf/shell/inject/Service.java  | 29 ++++++++++++++++++++
 5 files changed, 117 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/5acee177/shell/console/pom.xml
----------------------------------------------------------------------
diff --git a/shell/console/pom.xml b/shell/console/pom.xml
index 2a44b8b..9a04677 100644
--- a/shell/console/pom.xml
+++ b/shell/console/pom.xml
@@ -149,6 +149,7 @@
                             
org.apache.karaf.shell.console.commands;version=2.3.0,
                                
org.apache.karaf.shell.console.completer;version=${project.version},
                             
org.apache.karaf.shell.console.completer;version=2.3.0,
+                            
org.apache.karaf.shell.inject;version=${project.version},
                                
org.apache.karaf.shell.util;version=${project.version},
                             org.apache.karaf.shell.util;version=2.3.0,
                             
org.apache.felix.gogo*;version=${felix.gogo.version},

http://git-wip-us.apache.org/repos/asf/karaf/blob/5acee177/shell/console/src/main/java/org/apache/karaf/shell/inject/Destroy.java
----------------------------------------------------------------------
diff --git 
a/shell/console/src/main/java/org/apache/karaf/shell/inject/Destroy.java 
b/shell/console/src/main/java/org/apache/karaf/shell/inject/Destroy.java
new file mode 100644
index 0000000..4df9fe3
--- /dev/null
+++ b/shell/console/src/main/java/org/apache/karaf/shell/inject/Destroy.java
@@ -0,0 +1,29 @@
+/*
+ * 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.karaf.shell.inject;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.METHOD})
+public @interface Destroy {
+}

http://git-wip-us.apache.org/repos/asf/karaf/blob/5acee177/shell/console/src/main/java/org/apache/karaf/shell/inject/Init.java
----------------------------------------------------------------------
diff --git 
a/shell/console/src/main/java/org/apache/karaf/shell/inject/Init.java 
b/shell/console/src/main/java/org/apache/karaf/shell/inject/Init.java
new file mode 100644
index 0000000..154b883
--- /dev/null
+++ b/shell/console/src/main/java/org/apache/karaf/shell/inject/Init.java
@@ -0,0 +1,29 @@
+/*
+ * 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.karaf.shell.inject;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.METHOD})
+public @interface Init {
+}

http://git-wip-us.apache.org/repos/asf/karaf/blob/5acee177/shell/console/src/main/java/org/apache/karaf/shell/inject/Reference.java
----------------------------------------------------------------------
diff --git 
a/shell/console/src/main/java/org/apache/karaf/shell/inject/Reference.java 
b/shell/console/src/main/java/org/apache/karaf/shell/inject/Reference.java
new file mode 100644
index 0000000..b74d609
--- /dev/null
+++ b/shell/console/src/main/java/org/apache/karaf/shell/inject/Reference.java
@@ -0,0 +1,29 @@
+/*
+ * 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.karaf.shell.inject;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.FIELD})
+public @interface Reference {
+}

http://git-wip-us.apache.org/repos/asf/karaf/blob/5acee177/shell/console/src/main/java/org/apache/karaf/shell/inject/Service.java
----------------------------------------------------------------------
diff --git 
a/shell/console/src/main/java/org/apache/karaf/shell/inject/Service.java 
b/shell/console/src/main/java/org/apache/karaf/shell/inject/Service.java
new file mode 100644
index 0000000..ff3f3a3
--- /dev/null
+++ b/shell/console/src/main/java/org/apache/karaf/shell/inject/Service.java
@@ -0,0 +1,29 @@
+/*
+ * 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.karaf.shell.inject;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.TYPE})
+public @interface Service {
+}

Reply via email to