Пересмотрена структура проекта
Изменено название: ArcadexSystem -> ASys. Изменены корневые пакеты: eu.arcadex.system -> asys Не разработанные модули удалены. В проект будут включены только базовые модули, без которых система не сможет выполнять базовый функционал.
This commit is contained in:
18
core/pom.xml
18
core/pom.xml
@@ -7,17 +7,17 @@
|
||||
<name>Core</name>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
<version>0.2</version>
|
||||
<packaging>bundle</packaging>
|
||||
|
||||
<parent>
|
||||
<artifactId>arcadexsystem</artifactId>
|
||||
<groupId>eu.arcadex.system</groupId>
|
||||
<version>${global.version}</version>
|
||||
<groupId>asys</groupId>
|
||||
<artifactId>asys</artifactId>
|
||||
<version>${asys.version}</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
<finalName>${groupId}.${artifactId}-${version}</finalName>
|
||||
<finalName>${project.groupId}.${project.artifactId}-${project.version}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
@@ -26,10 +26,10 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Name>Arcadex System: ${name} ${version}</Bundle-Name>
|
||||
<Bundle-SymbolicName>${groupId}.${artifactId}</Bundle-SymbolicName>
|
||||
<Bundle-Activator>eu.arcadex.system.core.ASysCoreActivator</Bundle-Activator>
|
||||
<Export-Package>eu.arcadex.system.core.api</Export-Package>
|
||||
<Bundle-Name>ASys: ${project.name} ${project.version}</Bundle-Name>
|
||||
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
|
||||
<Bundle-Activator>asys.core.ASysCoreActivator</Bundle-Activator>
|
||||
<Export-Package>asys.core.api</Export-Package>
|
||||
<Import-Package>*</Import-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package eu.arcadex.system.core;
|
||||
/*
|
||||
* DmitriyMX <mail@dmitriymx.ru>
|
||||
* 2016-04-06
|
||||
*/
|
||||
package asys.core;
|
||||
|
||||
import eu.arcadex.system.core.api.ICore;
|
||||
import asys.core.api.ICore;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.osgi.framework.BundleException;
|
||||
@@ -11,10 +15,6 @@ import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author DmitriyMX <mail@dmitriymx.ru>
|
||||
* 2016
|
||||
*/
|
||||
class ASysCore implements ICore {
|
||||
private Logger logger = LoggerFactory.getLogger(ASysCore.class.getName());
|
||||
private BundleContext bundleContext;
|
||||
@@ -68,6 +68,7 @@ class ASysCore implements ICore {
|
||||
private void stopBundles(List<Bundle> bundleList) {
|
||||
for (Bundle bundle : bundleList) {
|
||||
try {
|
||||
logger.trace("Stop module \"{}\"", bundle.getSymbolicName());
|
||||
bundle.stop();
|
||||
} catch (BundleException e) {
|
||||
logger.error(String.format("Error stop bundle \"%s\"", bundle.getSymbolicName()), e);
|
||||
@@ -1,14 +1,14 @@
|
||||
package eu.arcadex.system.core;
|
||||
/*
|
||||
* DmitriyMX <mail@dmitriymx.ru>
|
||||
* 2016-04-06
|
||||
*/
|
||||
package asys.core;
|
||||
|
||||
import eu.arcadex.system.core.api.ICore;
|
||||
import asys.core.api.ICore;
|
||||
import org.osgi.framework.BundleActivator;
|
||||
import org.osgi.framework.BundleContext;
|
||||
import org.osgi.framework.ServiceRegistration;
|
||||
|
||||
/**
|
||||
* @author DmitriyMX <mail@dmitriymx.ru>
|
||||
* 2016
|
||||
*/
|
||||
public class ASysCoreActivator implements BundleActivator {
|
||||
private ServiceRegistration<?> service;
|
||||
|
||||
9
core/src/main/java/asys/core/api/ICore.java
Normal file
9
core/src/main/java/asys/core/api/ICore.java
Normal file
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* DmitriyMX <mail@dmitriymx.ru>
|
||||
* 2016-04-06
|
||||
*/
|
||||
package asys.core.api;
|
||||
|
||||
public interface ICore {
|
||||
void reloadMoludes();
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package eu.arcadex.system.core.api;
|
||||
|
||||
/**
|
||||
* @author DmitriyMX <mail@dmitriymx.ru>
|
||||
* 2016
|
||||
*/
|
||||
public interface ICore {
|
||||
void reloadMoludes();
|
||||
}
|
||||
Reference in New Issue
Block a user