Skip to content

Commit 5613939

Browse files
committed
SLING-1460 : Move SlingSettingsService to API bundle
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@927001 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0c2247e commit 5613939

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/main/java/org/apache/sling/engine/SlingSettingsService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020

2121
/**
2222
* The <code>SlingSettingsService</code> provides basic Sling settings.
23+
* @deprecated Use the {@link org.apache.sling.api.services.SlingSettingsService}
2324
*/
24-
public interface SlingSettingsService {
25+
@Deprecated
26+
public interface SlingSettingsService
27+
extends org.apache.sling.api.services.SlingSettingsService {
2528

2629
/**
2730
* The identifier of the running Sling instance.

src/main/java/org/apache/sling/engine/impl/EngineBundleActivator.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ public void start(BundleContext context) throws Exception {
4848
props.put(Constants.SERVICE_DESCRIPTION,
4949
"Apache Sling Settings Service");
5050
props.put(Constants.SERVICE_VENDOR, "The Apache Software Foundation");
51-
serviceRegistration = context.registerService(SlingSettingsService.class.getName(),
52-
service,
53-
props);
51+
serviceRegistration = context.registerService(new String[] {
52+
org.apache.sling.api.services.SlingSettingsService.class.getName(),
53+
SlingSettingsService.class.getName()},
54+
service, props);
5455
try {
5556
RequestHistoryConsolePlugin.initPlugin(context);
5657
} catch (Throwable ignore) {

src/main/java/org/apache/sling/engine/impl/SlingSettingsServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public SlingSettingsServiceImpl(final BundleContext context) {
9595
}
9696

9797
/**
98-
* @see org.apache.sling.engine.SlingSettingsService#getSlingId()
98+
* @see org.apache.sling.api.services.SlingSettingsService#getSlingId()
9999
*/
100100
public String getSlingId() {
101101
return this.slingId;

0 commit comments

Comments
 (0)