This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.scripting.thymeleaf-0.0.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-thymeleaf.git
commit 45275317afc07db7890a7572d67454edee659cb5 Author: Oliver Lietz <[email protected]> AuthorDate: Wed Jun 25 09:36:35 2014 +0000 SLING-3649 annotate interfaces with @ProviderType and export package org.apache.sling.scripting.thymeleaf git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/thymeleaf@1605306 13f79535-47bb-0310-9956-ffa450edef68 --- pom.xml | 11 ++++++++++- .../org/apache/sling/scripting/thymeleaf/SlingContext.java | 2 ++ .../sling/scripting/thymeleaf/SlingTemplateModeHandler.java | 2 ++ .../thymeleaf/{SlingContext.java => package-info.java} | 10 +--------- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 4bf8ff5..bc96cba 100644 --- a/pom.xml +++ b/pom.xml @@ -103,6 +103,13 @@ <artifactId>org.apache.felix.scr.annotations</artifactId> <scope>provided</scope> </dependency> + <!-- bndlib --> + <dependency> + <groupId>biz.aQute.bnd</groupId> + <artifactId>bndlib</artifactId> + <version>2.3.0</version> + <scope>provided</scope> + </dependency> <!-- Thymeleaf --> <dependency> <groupId>org.thymeleaf</groupId> @@ -156,7 +163,9 @@ <instructions> <Bundle-Category>sling</Bundle-Category> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> - <Export-Package/> + <Export-Package> + org.apache.sling.scripting.thymeleaf + </Export-Package> <Import-Package> org.apache.commons.io.input;version="1.4.9999", * diff --git a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java b/src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java index 18e6763..fa434a9 100644 --- a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java +++ b/src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java @@ -18,9 +18,11 @@ */ package org.apache.sling.scripting.thymeleaf; +import aQute.bnd.annotation.ProviderType; import org.apache.sling.api.resource.ResourceResolver; import org.thymeleaf.context.IContext; +@ProviderType public interface SlingContext extends IContext { ResourceResolver getResourceResolver(); diff --git a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingTemplateModeHandler.java b/src/main/java/org/apache/sling/scripting/thymeleaf/SlingTemplateModeHandler.java index abb35c8..66a1c3c 100644 --- a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingTemplateModeHandler.java +++ b/src/main/java/org/apache/sling/scripting/thymeleaf/SlingTemplateModeHandler.java @@ -18,9 +18,11 @@ */ package org.apache.sling.scripting.thymeleaf; +import aQute.bnd.annotation.ProviderType; import org.thymeleaf.PatternSpec; import org.thymeleaf.templatemode.ITemplateModeHandler; +@ProviderType public interface SlingTemplateModeHandler extends ITemplateModeHandler { PatternSpec getPatternSpec(); diff --git a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java b/src/main/java/org/apache/sling/scripting/thymeleaf/package-info.java similarity index 81% copy from src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java copy to src/main/java/org/apache/sling/scripting/thymeleaf/package-info.java index 18e6763..6aa0ac9 100644 --- a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingContext.java +++ b/src/main/java/org/apache/sling/scripting/thymeleaf/package-info.java @@ -16,13 +16,5 @@ * specific language governing permissions and limitations * under the License. */ [email protected]("0.0.1") package org.apache.sling.scripting.thymeleaf; - -import org.apache.sling.api.resource.ResourceResolver; -import org.thymeleaf.context.IContext; - -public interface SlingContext extends IContext { - - ResourceResolver getResourceResolver(); - -} -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
