-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mark Hoffmann <m.hoffmann@data-in-motion.biz>
- Loading branch information
Showing
115 changed files
with
1,425 additions
and
164 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
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-17"/> | ||
<classpathentry kind="con" path="aQute.bnd.classpath.container"/> | ||
<classpathentry kind="src" output="bin" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</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 @@ | ||
/bin/ |
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>org.gecko.playground.ds.simple</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>bndtools.core.bndbuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>bndtools.core.bndnature</nature> | ||
</natures> | ||
</projectDescription> |
3 changes: 3 additions & 0 deletions
3
org.gecko.playground.ds.simple/.settings/org.eclipse.core.resources.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 | ||
encoding/<project>=UTF-8 | ||
encoding/bnd.bnd=UTF-8 |
14 changes: 14 additions & 0 deletions
14
org.gecko.playground.ds.simple/.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,14 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 | ||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
org.eclipse.jdt.core.compiler.compliance=17 | ||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning | ||
org.eclipse.jdt.core.compiler.release=enabled | ||
org.eclipse.jdt.core.compiler.source=17 |
Empty file.
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,15 @@ | ||
-runfw: org.apache.felix.framework;version='[7.0.5,7.0.5]' | ||
-runee: JavaSE-17 | ||
-runrequires: \ | ||
bnd.identity;id='org.gecko.playground.ds.simple',\ | ||
bnd.identity;id='org.apache.felix.gogo.command',\ | ||
bnd.identity;id='org.apache.felix.gogo.shell' | ||
-runbundles: \ | ||
org.apache.felix.scr;version='[2.2.6,2.2.7)',\ | ||
org.gecko.playground.ds.simple;version=snapshot,\ | ||
org.osgi.service.component;version='[1.5.1,1.5.2)',\ | ||
org.osgi.util.function;version='[1.2.0,1.2.1)',\ | ||
org.osgi.util.promise;version='[1.3.0,1.3.1)',\ | ||
org.apache.felix.gogo.command;version='[1.1.2,1.1.3)',\ | ||
org.apache.felix.gogo.runtime;version='[1.1.6,1.1.7)',\ | ||
org.apache.felix.gogo.shell;version='[1.1.4,1.1.5)' |
18 changes: 18 additions & 0 deletions
18
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/ConsoleLog.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,18 @@ | ||
package org.gecko.playground.ds.simple; | ||
|
||
import org.gecko.playground.ds.simple.logging.Log; | ||
import org.osgi.service.component.annotations.Component; | ||
|
||
@Component | ||
public class ConsoleLog implements Log { | ||
|
||
public ConsoleLog () { | ||
System.out.println("ConsoleLog created"); | ||
} | ||
|
||
@Override | ||
public void logMessage(String message) { | ||
System.out.println("LOG : " + message); | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/HelloComponent.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,12 @@ | ||
package org.gecko.playground.ds.simple; | ||
|
||
import org.osgi.service.component.annotations.Component; | ||
|
||
@Component | ||
public class HelloComponent { | ||
|
||
public HelloComponent () { | ||
System.out.println("HelloComponent created"); | ||
} | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/logging/Log.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,6 @@ | ||
package org.gecko.playground.ds.simple.logging; | ||
|
||
public interface Log { | ||
|
||
void logMessage(String message); | ||
} |
3 changes: 3 additions & 0 deletions
3
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/logging/package-info.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,3 @@ | ||
@org.osgi.annotation.bundle.Export | ||
@org.osgi.annotation.versioning.Version("1.0.0") | ||
package org.gecko.playground.ds.simple.logging; |
15 changes: 15 additions & 0 deletions
15
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/properties/AnotherLog.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,15 @@ | ||
package org.gecko.playground.ds.simple.properties; | ||
|
||
import org.gecko.playground.ds.simple.logging.Log; | ||
import org.osgi.service.component.annotations.Component; | ||
|
||
//@Component(property = "fizz=buzz") | ||
@MyServiceProp(foo = "bar") | ||
public class AnotherLog implements Log { | ||
|
||
@Override | ||
public void logMessage(String message) { | ||
System.out.println("ANOTHER LOG : " + message); | ||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
...cko.playground.ds.simple/src/org/gecko/playground/ds/simple/properties/MyServiceProp.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,17 @@ | ||
package org.gecko.playground.ds.simple.properties; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
import org.osgi.service.component.annotations.ComponentPropertyType; | ||
|
||
@ComponentPropertyType | ||
@Retention(RetentionPolicy.CLASS) | ||
@Target(ElementType.TYPE) | ||
public @interface MyServiceProp { | ||
|
||
String foo(); | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...ayground.ds.simple/src/org/gecko/playground/ds/simple/references/ReferencedComponent.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 @@ | ||
package org.gecko.playground.ds.simple.references; | ||
|
||
import org.gecko.playground.ds.simple.logging.Log; | ||
import org.osgi.service.component.annotations.Component; | ||
import org.osgi.service.component.annotations.Reference; | ||
|
||
//@Component | ||
public class ReferencedComponent { | ||
|
||
public ReferencedComponent () { | ||
System.out.println("ReferencedComponent created"); | ||
} | ||
|
||
@Reference | ||
void setLog(Log log) { | ||
System.out.println("set Log " + log.getClass().getName()); | ||
} | ||
|
||
void unsetLog(Log log) { | ||
System.out.println("set Log " + log.getClass().getName()); | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/services/MyService.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,5 @@ | ||
package org.gecko.playground.ds.simple.services; | ||
|
||
public interface MyService { | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/services/MyService1.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,5 @@ | ||
package org.gecko.playground.ds.simple.services; | ||
|
||
public interface MyService1 { | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/services/MyService2.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,5 @@ | ||
package org.gecko.playground.ds.simple.services; | ||
|
||
public interface MyService2 { | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/services/MyServiceImpl.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,10 @@ | ||
package org.gecko.playground.ds.simple.services; | ||
|
||
import org.osgi.service.component.annotations.Component; | ||
|
||
//@Component(service = MyService.class) | ||
//@Component(service = {MyService1.class, MyService2.class}) | ||
//@Component(service = {}) | ||
public class MyServiceImpl implements MyService, MyService1, MyService2 { | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/services/package-info.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 @@ | ||
package org.gecko.playground.ds.simple.services; |
19 changes: 19 additions & 0 deletions
19
org.gecko.playground.ds.simple/src/org/gecko/playground/ds/simple/shell/HelloCommand.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,19 @@ | ||
package org.gecko.playground.ds.simple.shell; | ||
|
||
import org.osgi.service.component.annotations.Component; | ||
|
||
//@Component (service = Object.class , | ||
// property = { "osgi.command.scope=hello", | ||
// "osgi.command.function=sagHallo", | ||
// "osgi.command.function=sayHello"}) | ||
public class HelloCommand { | ||
|
||
public void sayHello () { | ||
System.out.println("I wanted to say Hello!"); | ||
} | ||
|
||
// public void sagHallo () { | ||
// System.out.println("Ich wollte nur Hallo sagen!"); | ||
// } | ||
|
||
} |
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 |
---|---|---|
|
@@ -11,6 +11,6 @@ | |
{ | ||
"name": "Happy", | ||
"year": 2010, | ||
"description": "I wanna be happy" | ||
"description": "I wanna be shappy" | ||
} | ||
} |
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,4 +1,6 @@ | ||
-includeresource: \ | ||
OSGI-INF/configurator/=config/ | ||
|
||
-resourceonly: true | ||
|
||
Require-Capability: osgi.extender;filter:='(osgi.extender=osgi.configurator)' |
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,3 +1,4 @@ | ||
-privatepackage: \ | ||
org.gecko.playground.ds.factory,\ | ||
org.gecko.playground.ds.factory.cmd | ||
org.gecko.playground.ds.factory.cmd | ||
Export-Package: org.gecko.playground.ds.factory.api |
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 @@ | ||
-privatepackage: org.gecko.playground.ds.factory.garden |
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 @@ | ||
-privatepackage: org.gecko.playground.ds.factory.home |
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
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.