Author: sergeyb
Date: Mon May 18 15:28:46 2015
New Revision: 1680044
URL: http://svn.apache.org/r1680044
Log:
[ARIES-1322] Adding a Namespaces annotation
Added:
aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java
(with props)
Added:
aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java
URL:
http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java?rev=1680044&view=auto
==============================================================================
---
aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java
(added)
+++
aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java
Mon May 18 15:28:46 2015
@@ -0,0 +1,25 @@
+package org.apache.aries.blueprint;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Lists the namespaces supported by a given <code>NamespaceHandler</code>.
+ * <code>NamespaceHandler</code> implementations may optionally use this
annotation to
+ * simplify the auto-registration process in some deployment scenarios.
+ */
+
+@Inherited
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface Namespaces {
+ /**
+ * A list of namespaces supported by <code>NamespaceHandler</code>.
+ */
+ String[] value();
+}
Propchange:
aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
aries/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Namespaces.java
------------------------------------------------------------------------------
svn:keywords = Rev Date