added osgi-app plugin
This commit is contained in:
11
osgi-app/osgi-simple-bootstrapper-api/build.gradle
Normal file
11
osgi-app/osgi-simple-bootstrapper-api/build.gradle
Normal file
@@ -0,0 +1,11 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
}
|
||||
|
||||
group = "net.woggioni.osgi"
|
||||
version = "0.1"
|
||||
|
||||
dependencies {
|
||||
compileOnly group: 'org.osgi', name: 'osgi.annotation', version: getProperty('version.osgi')
|
||||
compileOnly group: 'org.osgi', name: 'osgi.core', version: getProperty('version.osgi')
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
package net.woggioni.osgi.simple.bootstrapper.api;
|
||||
|
||||
public interface Application {
|
||||
int run(String[] args);
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
package net.woggioni.osgi.simple.bootstrapper.api;
|
||||
|
||||
public interface FrameworkService {
|
||||
String getMainApplicationComponentName();
|
||||
String[] getArgs();
|
||||
void setExitCode(int exitCode);
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
@Export
|
||||
package net.woggioni.osgi.simple.bootstrapper.api;
|
||||
|
||||
import org.osgi.annotation.bundle.Export;
|
Reference in New Issue
Block a user