-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into bug421569
Change-Id: I944b5302570995d64fd9ed8b78764b7f81385b64
- Loading branch information
Showing
426 changed files
with
17,503 additions
and
2,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
examples/bundles/com.mycorp.examples.timeservice.async/.classpath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
1 change: 1 addition & 0 deletions
1
examples/bundles/com.mycorp.examples.timeservice.async/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin |
28 changes: 28 additions & 0 deletions
28
examples/bundles/com.mycorp.examples.timeservice.async/.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>com.mycorp.examples.timeservice.async</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
7 changes: 7 additions & 0 deletions
7
examples/bundles/com.mycorp.examples.timeservice.async/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
org.eclipse.jdt.core.compiler.compliance=1.8 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.8 |
3 changes: 3 additions & 0 deletions
3
examples/bundles/com.mycorp.examples.timeservice.async/.settings/org.eclipse.pde.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
eclipse.preferences.version=1 | ||
pluginProject.extensions=false | ||
resolve.requirebundle=false |
9 changes: 9 additions & 0 deletions
9
examples/bundles/com.mycorp.examples.timeservice.async/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: ECF RS Example Timeservice Async API | ||
Bundle-SymbolicName: com.mycorp.examples.timeservice.async | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-Vendor: Eclipse.org - ECF | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Export-Package: com.mycorp.examples.timeservice;version="2.0.0" | ||
Bundle-ActivationPolicy: lazy |
4 changes: 4 additions & 0 deletions
4
examples/bundles/com.mycorp.examples.timeservice.async/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
. |
26 changes: 26 additions & 0 deletions
26
...m.mycorp.examples.timeservice.async/src/com/mycorp/examples/timeservice/ITimeService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2014 Composent, Inc. All rights reserved. This | ||
* program and the accompanying materials are made available under the terms of | ||
* the Eclipse Public License v1.0 which accompanies this distribution, and is | ||
* available at http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: Scott Lewis - initial API and implementation | ||
******************************************************************************/ | ||
package com.mycorp.examples.timeservice; | ||
|
||
/** | ||
* Example OSGi service for retrieving current time in milliseconds from January | ||
* 1, 1970. | ||
* | ||
*/ | ||
public interface ITimeService { | ||
|
||
/** | ||
* Get current time. | ||
* | ||
* @return Long current time in milliseconds since Jan 1, 1970. Will not | ||
* return <code>null</code>. | ||
*/ | ||
public Long getCurrentTime(); | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...orp.examples.timeservice.async/src/com/mycorp/examples/timeservice/ITimeServiceAsync.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2014 Composent, Inc. All rights reserved. This | ||
* program and the accompanying materials are made available under the terms of | ||
* the Eclipse Public License v1.0 which accompanies this distribution, and is | ||
* available at http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: Scott Lewis - initial API and implementation | ||
******************************************************************************/ | ||
package com.mycorp.examples.timeservice; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public interface ITimeServiceAsync { | ||
|
||
/** | ||
* Get current time using Java 8 {@link CompletableFuture}. | ||
* | ||
* @return CompletableFuture<Long> The future value time in milliseconds since Jan 1, 1970. Will not | ||
* return <code>null</code>. | ||
*/ | ||
public CompletableFuture<Long> getCurrentTimeAsync(); | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
examples/bundles/com.mycorp.examples.timeservice.consumer.ds.async/.classpath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
1 change: 1 addition & 0 deletions
1
examples/bundles/com.mycorp.examples.timeservice.consumer.ds.async/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bin |
33 changes: 33 additions & 0 deletions
33
examples/bundles/com.mycorp.examples.timeservice.consumer.ds.async/.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>com.mycorp.examples.timeservice.consumer.ds.async</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ManifestBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.SchemaBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ds.core.builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
7 changes: 7 additions & 0 deletions
7
...es/com.mycorp.examples.timeservice.consumer.ds.async/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
org.eclipse.jdt.core.compiler.compliance=1.8 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.source=1.8 |
3 changes: 3 additions & 0 deletions
3
...es/com.mycorp.examples.timeservice.consumer.ds.async/.settings/org.eclipse.pde.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
eclipse.preferences.version=1 | ||
pluginProject.extensions=false | ||
resolve.requirebundle=false |
10 changes: 10 additions & 0 deletions
10
examples/bundles/com.mycorp.examples.timeservice.consumer.ds.async/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Async | ||
Bundle-SymbolicName: com.mycorp.examples.timeservice.consumer.ds.async | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-Vendor: MYCORP | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Import-Package: com.mycorp.examples.timeservice;version="2.0.0" | ||
Service-Component: OSGI-INF/timeservicecomponentasync.xml | ||
Bundle-ActivationPolicy: lazy |
5 changes: 5 additions & 0 deletions
5
.../com.mycorp.examples.timeservice.consumer.ds.async/OSGI-INF/timeservicecomponentasync.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" enabled="true" name="com.mycorp.examples.timeservice.consumer.ds.async"> | ||
<implementation class="com.mycorp.examples.timeservice.consumer.ds.async.TimeServiceComponentAsync"/> | ||
<reference bind="bindTimeService" cardinality="1..n" interface="com.mycorp.examples.timeservice.ITimeServiceAsync" name="ITimeServiceAsync" policy="dynamic"/> | ||
</scr:component> |
6 changes: 6 additions & 0 deletions
6
examples/bundles/com.mycorp.examples.timeservice.consumer.ds.async/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
OSGI-INF/timeservicecomponentasync.xml,\ | ||
OSGI-INF/ | ||
source.. = src/ |
24 changes: 24 additions & 0 deletions
24
...sync/src/com/mycorp/examples/timeservice/consumer/ds/async/TimeServiceComponentAsync.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2014 Composent, Inc. All rights reserved. This | ||
* program and the accompanying materials are made available under the terms of | ||
* the Eclipse Public License v1.0 which accompanies this distribution, and is | ||
* available at http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: Scott Lewis - initial API and implementation | ||
******************************************************************************/ | ||
package com.mycorp.examples.timeservice.consumer.ds.async; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
import com.mycorp.examples.timeservice.ITimeServiceAsync; | ||
|
||
public class TimeServiceComponentAsync { | ||
|
||
void bindTimeService(ITimeServiceAsync timeService) { | ||
System.out.println("Discovered ITimeServiceAsync via DS"); | ||
// Get the CompletableFuture...no blocking here | ||
CompletableFuture<Long> cf = timeService.getCurrentTimeAsync(); | ||
// print out time when done...no blocking anywhere! | ||
cf.thenAccept((time) -> System.out.println("Remote time is: " + time)); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
examples/bundles/com.mycorp.examples.timeservice.consumer.ds/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Timeservice Consumer Declarative Services Example | ||
Bundle-Name: ECF RS Example Timeservice Consumer DS | ||
Bundle-SymbolicName: com.mycorp.examples.timeservice.consumer.ds | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-Vendor: MyCorp, Inc. | ||
Bundle-Vendor: Eclipse.org - ECF | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Service-Component: OSGI-INF/timeservicecomponent.xml | ||
Import-Package: com.mycorp.examples.timeservice;version="1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ bin.includes = META-INF/,\ | |
OSGI-INF/timeservicecomponent.xml,\ | ||
OSGI-INF/ | ||
source.. = src/ | ||
src.includes = launch/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
.../bundles/com.mycorp.examples.timeservice.consumer.filediscovery.rest/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Timeservice Consuemr FileDiscovery Rest | ||
Bundle-Name: ECF RS Example REST Timeservice Consumer FileDiscovery | ||
Bundle-SymbolicName: com.mycorp.examples.timeservice.consumer.filediscovery.rest | ||
Bundle-Version: 1.0.0.qualifier | ||
Bundle-Vendor: MyCorp | ||
Bundle-Version: 1.1.0.qualifier | ||
Bundle-Vendor: Eclipse.org - ECF | ||
Bundle-RequiredExecutionEnvironment: J2SE-1.5 | ||
Remote-Service: timeservicerestendpointdescription.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.