SLING-4823 : Register a service when the system is ready

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1686363 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 7b5224e..67d1661 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,11 +41,6 @@
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
                 <extensions>true</extensions>
-                <configuration>
-                    <instructions>
-                        <Export-Package>org.apache.sling.launchpad.api;version=1.1.0</Export-Package>
-                    </instructions>
-                </configuration>
             </plugin>
         </plugins>
     </build>
diff --git a/src/main/java/org/apache/sling/launchpad/api/StartupService.java b/src/main/java/org/apache/sling/launchpad/api/StartupService.java
new file mode 100644
index 0000000..076333f
--- /dev/null
+++ b/src/main/java/org/apache/sling/launchpad/api/StartupService.java
@@ -0,0 +1,30 @@
+/*
+ * 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.launchpad.api;
+
+
+/**
+ * The startup service is registered when the startup is finished.
+ *
+ * @since 1.2.0
+ */
+public interface StartupService {
+
+    StartupMode getStartupMode();
+}
diff --git a/src/main/java/org/apache/sling/launchpad/api/package-info.java b/src/main/java/org/apache/sling/launchpad/api/package-info.java
new file mode 100644
index 0000000..ef2b1f2
--- /dev/null
+++ b/src/main/java/org/apache/sling/launchpad/api/package-info.java
@@ -0,0 +1,24 @@
+/*
+ * 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.
+ */
+
+@Version("1.2.0")
+package org.apache.sling.launchpad.api;
+
+import aQute.bnd.annotation.Version;
+