Author: dklco
Date: Tue Jun 18 14:21:49 2013
New Revision: 1494152
URL: http://svn.apache.org/r1494152
Log:
Cleaned up licensing to satsify the rat plugin
Added:
sling/whiteboard/dklco/sling-proxy/README.txt
- copied unchanged from r1493748,
sling/whiteboard/dklco/sling-proxy/README.md
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/annotations/package-info.java
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/lang/package-info.java
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/package-info.java
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/reflection/package-info.java
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/to/package-info.java
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/package-info.java
Removed:
sling/whiteboard/dklco/sling-proxy/README.md
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/annotations/package.html
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/lang/package.html
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/package.html
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/reflection/package.html
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/to/package.html
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/package.html
Modified:
sling/whiteboard/dklco/sling-proxy/pom.xml
sling/whiteboard/dklco/sling-proxy/src/site/markdown/annotations.md
sling/whiteboard/dklco/sling-proxy/src/site/markdown/index.md
sling/whiteboard/dklco/sling-proxy/src/site/site.xml
sling/whiteboard/dklco/sling-proxy/src/test/java/org/apache/sling/commons/proxy/TestSlingDefaultProxy.java
sling/whiteboard/dklco/sling-proxy/src/test/resources/simplelogger.properties
Modified: sling/whiteboard/dklco/sling-proxy/pom.xml
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/pom.xml?rev=1494152&r1=1494151&r2=1494152&view=diff
==============================================================================
--- sling/whiteboard/dklco/sling-proxy/pom.xml (original)
+++ sling/whiteboard/dklco/sling-proxy/pom.xml Tue Jun 18 14:21:49 2013
@@ -15,8 +15,7 @@
<parent>
<groupId>org.apache.sling</groupId>
<artifactId>sling</artifactId>
- <version>16-SNAPSHOT</version>
- <relativePath>../../../../parent/pom.xml</relativePath>
+ <version>15</version>
</parent>
<artifactId>org.apache.sling.commons.proxy</artifactId>
@@ -47,42 +46,51 @@
</instructions>
</configuration>
</plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.0</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-module-markdown</artifactId>
- <version>1.3</version>
- </dependency>
- </dependencies>
- </plugin>
-
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <dependencies>
+ <dependency>
+
<groupId>org.apache.maven.doxia</groupId>
+
<artifactId>doxia-module-markdown</artifactId>
+ <version>1.3</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
</plugins>
</build>
<dependencies>
<dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.api</artifactId>
- <version>2.0.6</version>
+ <groupId>biz.aQute</groupId>
+ <artifactId>bndlib</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.4</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
</dependency>
<dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.apache.sling</groupId>
-
<artifactId>org.apache.sling.commons.classloader</artifactId>
- <version>1.2.4</version>
+ <artifactId>org.apache.sling.api</artifactId>
+ <version>2.0.6</version>
</dependency>
<dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
+ <groupId>org.apache.sling</groupId>
+
<artifactId>org.apache.sling.commons.classloader</artifactId>
+ <version>1.2.4</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
@@ -92,12 +100,6 @@
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
</dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
<dependency>
<groupId>junit</groupId>
@@ -116,4 +118,4 @@
<scope>test</scope>
</dependency>
</dependencies>
-</project>
+</project>
\ No newline at end of file
Added:
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/annotations/package-info.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/annotations/package-info.java?rev=1494152&view=auto
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/annotations/package-info.java
(added)
+++
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/annotations/package-info.java
Tue Jun 18 14:21:49 2013
@@ -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.
+ */
+
+/**
+ * Provides the Annotations to configure SlingProxy interfaces.
+ *
+ * @version 1.0
+ */
+@Version("1.0")
+package org.apache.sling.commons.proxy.annotations;
+
+import aQute.bnd.annotation.Version;
+
Added:
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/lang/package-info.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/lang/package-info.java?rev=1494152&view=auto
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/lang/package-info.java
(added)
+++
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/lang/package-info.java
Tue Jun 18 14:21:49 2013
@@ -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.
+ */
+
+/**
+ * Provides helper classes for handling language default methods.
+ *
+ * @version 1.0
+ */
+@Version("1.0")
+package org.apache.sling.commons.proxy.impl.lang;
+
+import aQute.bnd.annotation.Version;
+
Added:
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/package-info.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/package-info.java?rev=1494152&view=auto
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/package-info.java
(added)
+++
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/package-info.java
Tue Jun 18 14:21:49 2013
@@ -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.
+ */
+
+/**
+ * Provides the default implementation of the Sling Proxy API.
+ *
+ * @version 1.0
+ */
+@Version("1.0")
+package org.apache.sling.commons.proxy.impl;
+
+import aQute.bnd.annotation.Version;
+
Added:
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/reflection/package-info.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/reflection/package-info.java?rev=1494152&view=auto
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/reflection/package-info.java
(added)
+++
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/reflection/package-info.java
Tue Jun 18 14:21:49 2013
@@ -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.
+ */
+
+/**
+ * Provides helper classes for interacting with Classes, Annotations and
Methods.
+ *
+ * @version 1.0
+ */
+@Version("1.0")
+package org.apache.sling.commons.proxy.impl.reflection;
+
+import aQute.bnd.annotation.Version;
+
Added:
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/to/package-info.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/to/package-info.java?rev=1494152&view=auto
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/to/package-info.java
(added)
+++
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/impl/to/package-info.java
Tue Jun 18 14:21:49 2013
@@ -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.
+ */
+
+/**
+ * Provides the Transfer Objects for transferring method invocation data.
+ *
+ * @version 1.0
+ */
+@Version("1.0")
+package org.apache.sling.commons.proxy.impl.to;
+
+import aQute.bnd.annotation.Version;
+
Added:
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/package-info.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/package-info.java?rev=1494152&view=auto
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/package-info.java
(added)
+++
sling/whiteboard/dklco/sling-proxy/src/main/java/org/apache/sling/commons/proxy/package-info.java
Tue Jun 18 14:21:49 2013
@@ -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.
+ */
+
+/**
+ * Provides an implementation of the Java Dynamic Proxy API for Apache Sling.
+ *
+ * @version 1.0
+ */
+@Version("1.0")
+package org.apache.sling.commons.proxy;
+
+import aQute.bnd.annotation.Version;
+
Modified: sling/whiteboard/dklco/sling-proxy/src/site/markdown/annotations.md
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/site/markdown/annotations.md?rev=1494152&r1=1494151&r2=1494152&view=diff
==============================================================================
--- sling/whiteboard/dklco/sling-proxy/src/site/markdown/annotations.md
(original)
+++ sling/whiteboard/dklco/sling-proxy/src/site/markdown/annotations.md Tue Jun
18 14:21:49 2013
@@ -1,3 +1,23 @@
+<!--
+
+ 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.
+
+-->
# Apache Sling Proxy - Annotations
Three annotations are provided to annotation Proxy Interface methods.
Modified: sling/whiteboard/dklco/sling-proxy/src/site/markdown/index.md
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/site/markdown/index.md?rev=1494152&r1=1494151&r2=1494152&view=diff
==============================================================================
--- sling/whiteboard/dklco/sling-proxy/src/site/markdown/index.md (original)
+++ sling/whiteboard/dklco/sling-proxy/src/site/markdown/index.md Tue Jun 18
14:21:49 2013
@@ -1,3 +1,23 @@
+<!--
+
+ 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.
+
+-->
# Apache Sling Proxy
Sling Proxy allows you to develop interfaces which will be instantiated with
properties from the Sling repository at runtime. Sling Proxy uses the [Java
Dynamic Proxies
API](http://docs.oracle.com/javase/1.4.2/docs/guide/reflection/proxy.html) to
dynamically handle method calls against the interface. The Sling Proxy API
allows you to avoid having to write custom code to handle the mapping of Sling
properties to Java fields allowing you to spend less time on boilerplate code
and more on your application.
Modified: sling/whiteboard/dklco/sling-proxy/src/site/site.xml
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/site/site.xml?rev=1494152&r1=1494151&r2=1494152&view=diff
==============================================================================
--- sling/whiteboard/dklco/sling-proxy/src/site/site.xml (original)
+++ sling/whiteboard/dklco/sling-proxy/src/site/site.xml Tue Jun 18 14:21:49
2013
@@ -1,12 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!-- /** * Copyright 2006 The Apache Software Foundation. * * Licensed 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. */
-->
+<!--
+
+ 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.
+
+-->
<project xmlns="http://maven.apache.org/DECORATION/1.3.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.3.0
http://maven.apache.org/xsd/decoration-1.3.0.xsd">
Modified:
sling/whiteboard/dklco/sling-proxy/src/test/java/org/apache/sling/commons/proxy/TestSlingDefaultProxy.java
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/test/java/org/apache/sling/commons/proxy/TestSlingDefaultProxy.java?rev=1494152&r1=1494151&r2=1494152&view=diff
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/test/java/org/apache/sling/commons/proxy/TestSlingDefaultProxy.java
(original)
+++
sling/whiteboard/dklco/sling-proxy/src/test/java/org/apache/sling/commons/proxy/TestSlingDefaultProxy.java
Tue Jun 18 14:21:49 2013
@@ -1,3 +1,21 @@
+/*
+ * 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.sling.commons.proxy;
import static org.junit.Assert.assertArrayEquals;
Modified:
sling/whiteboard/dklco/sling-proxy/src/test/resources/simplelogger.properties
URL:
http://svn.apache.org/viewvc/sling/whiteboard/dklco/sling-proxy/src/test/resources/simplelogger.properties?rev=1494152&r1=1494151&r2=1494152&view=diff
==============================================================================
---
sling/whiteboard/dklco/sling-proxy/src/test/resources/simplelogger.properties
(original)
+++
sling/whiteboard/dklco/sling-proxy/src/test/resources/simplelogger.properties
Tue Jun 18 14:21:49 2013
@@ -1 +1,17 @@
+# 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.
org.slf4j.simpleLogger.defaultLogLevel=trace
\ No newline at end of file