release version 1.10.0
This commit is contained in:
175
platform/runtime/core/artifact-management-extensions/LICENSE.txt
Normal file
175
platform/runtime/core/artifact-management-extensions/LICENSE.txt
Normal file
@ -0,0 +1,175 @@
|
||||
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
|
||||
|
||||
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
|
||||
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
|
||||
Правообладателю – Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
|
||||
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
|
||||
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
|
||||
https://www.emdev.ru/about (далее - Компания).
|
||||
|
||||
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
|
||||
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
|
||||
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
|
||||
настоящем документе, в противном случае, он должен не использовать или не получать доступ
|
||||
к Программному обеспечению.
|
||||
|
||||
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
|
||||
|
||||
a) ПО – Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
|
||||
или редакции, исключительные права на которую принадлежат Правообладателю.
|
||||
b) Правообладатель (Компания) – ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
|
||||
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
|
||||
для ЭВМ № 2021610848 от 19.01.2021 года.
|
||||
c) Пользователь – юридическое или физическое лицо, получившее через скачивание с сайта
|
||||
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
|
||||
d) ИС – интеллектуальная собственность – закреплённое законом исключительное право, а также
|
||||
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
|
||||
e) Подписка – это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
|
||||
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
|
||||
включает предоставление Пользователю неисключительного права использования ПО, в том числе
|
||||
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
|
||||
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
|
||||
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
|
||||
для каждого Пользователя индивидуально в Сертификате.
|
||||
f) Сертификат – документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
|
||||
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
|
||||
обеспечение в ограниченном объёме и на определённый период времени.
|
||||
g) Лицензия (простая (неисключительная) – совокупность ограниченных прав использования ПО,
|
||||
предоставленных Пользователю согласно условиям Подписки.
|
||||
h) Библиотека – совокупность подпрограмм и объектов, используемых для разработки программного
|
||||
обеспечения.
|
||||
i) Исходный код – текст компьютерной программы на каком-либо языке программирования, состоящий
|
||||
из одного или нескольких файлов, который может быть прочтён человеком.
|
||||
j) Объектный код – файл (часть машинного кода) с промежуточным представлением отдельного модуля
|
||||
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
|
||||
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
|
||||
продукт.
|
||||
k) Некоммерческое использование – индивидуальное личное использование Пользователем программного
|
||||
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
|
||||
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
|
||||
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
|
||||
|
||||
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
|
||||
|
||||
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
|
||||
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
|
||||
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
|
||||
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
|
||||
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
|
||||
неисключительный характер.
|
||||
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
|
||||
лицензия на ограниченное использование Программного обеспечения.
|
||||
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
|
||||
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
|
||||
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
|
||||
вида лицензии с Базовой бесплатной версии на Подписки.
|
||||
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
|
||||
пробного использования программного обеспечения – не ограничен.
|
||||
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
|
||||
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
|
||||
без разрешения Правообладателя не допускается.
|
||||
|
||||
3. АВТОРСКОЕ ПРАВО.
|
||||
|
||||
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
|
||||
и любые его копии принадлежат Правообладателю.
|
||||
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
|
||||
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
|
||||
соответствующего владельца контента и защищается применимым законодательством об авторском
|
||||
праве или другими законами и договорами об интеллектуальной собственности.
|
||||
3.3. Условия использования Программного обеспечения.
|
||||
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
|
||||
придерживается следующих условий:
|
||||
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
|
||||
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
|
||||
Программного обеспечения или на нем.
|
||||
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
|
||||
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
|
||||
Программное обеспечение.
|
||||
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
|
||||
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
|
||||
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
|
||||
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
|
||||
|
||||
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
|
||||
|
||||
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
|
||||
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
|
||||
использованием Пользователем:
|
||||
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
|
||||
Программное обеспечение;
|
||||
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
|
||||
настоящего соглашения;
|
||||
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
|
||||
или данными, не предоставленными Пользователю Правообладателем;
|
||||
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
|
||||
|
||||
|
||||
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
|
||||
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
|
||||
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
|
||||
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
|
||||
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
|
||||
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
|
||||
|
||||
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
|
||||
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
|
||||
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
|
||||
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
|
||||
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
|
||||
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
|
||||
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
|
||||
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
|
||||
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
|
||||
|
||||
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
|
||||
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
|
||||
(включая, но не ограничиваясь) по:
|
||||
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
|
||||
Программного обеспечения;
|
||||
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
|
||||
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
|
||||
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
|
||||
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
|
||||
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
|
||||
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
|
||||
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
|
||||
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
|
||||
|
||||
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
|
||||
|
||||
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
|
||||
лицензионных продуктов, используемых на законных основаниях, а
|
||||
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
|
||||
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
|
||||
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
|
||||
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
|
||||
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
|
||||
содержащих все изменения и дополнения программного обеспечения.
|
||||
|
||||
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
|
||||
|
||||
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
|
||||
программным обеспечением.
|
||||
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
|
||||
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
|
||||
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
|
||||
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
|
||||
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
|
||||
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
|
||||
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
|
||||
Российской Федерации.
|
||||
|
||||
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
|
||||
|
||||
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
|
||||
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
|
||||
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
|
||||
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
|
||||
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
|
||||
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
|
||||
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
|
||||
законодательство – Российской Федерации.
|
||||
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
|
||||
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
|
||||
исполнять свои обязанности в соответствии с этими положениями.
|
56
platform/runtime/core/artifact-management-extensions/pom.xml
Normal file
56
platform/runtime/core/artifact-management-extensions/pom.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<version>1.10.0</version>
|
||||
</parent>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
|
||||
<artifactId>artifact-management-extensions</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
<name>ENTAXY :: PLATFORM :: CORE :: ARTIFACT MANAGEMENT EXTENSIONS</name>
|
||||
<description>ENTAXY :: PLATFORM :: CORE :: ARTIFACT MANAGEMENT EXTENSIONS</description>
|
||||
|
||||
<properties>
|
||||
<bundle.osgi.export.pkg>
|
||||
ru.entaxy.platform.core.artifact.ext.binary,
|
||||
ru.entaxy.platform.core.artifact.ext.features,
|
||||
ru.entaxy.platform.core.artifact.ext.impl,
|
||||
ru.entaxy.platform.core.artifact.ext
|
||||
</bundle.osgi.export.pkg>
|
||||
<bundle.osgi.private.pkg>
|
||||
ru.entaxy.platform.core.artifact.ext.internal,
|
||||
ru.entaxy.platform.core.artifact.ext.features.impl
|
||||
</bundle.osgi.private.pkg>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
|
||||
<artifactId>artifact-management</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>${commons-io.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.karaf.features</groupId>
|
||||
<artifactId>org.apache.karaf.features.core</artifactId>
|
||||
<version>${karaf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.karaf.cellar</groupId>
|
||||
<artifactId>org.apache.karaf.cellar.features</artifactId>
|
||||
<version>${cellar.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ru.entaxy.esb.platform.runtime.base</groupId>
|
||||
<artifactId>cellar-extensions</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
@ -0,0 +1,33 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext;
|
||||
|
||||
public interface ArtifactExtended {
|
||||
|
||||
String ARTIFACT_CATEGORY_UNTYPED_BINARY = "UNTYPED_BINARY";
|
||||
String ARTIFACT_CATEGORY_FEATURE = "FEATURE";
|
||||
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.Artifact;
|
||||
import ru.entaxy.platform.core.artifact.ext.features.FeatureInstaller;
|
||||
import ru.entaxy.platform.core.artifact.ext.features.FeaturesInstaller;
|
||||
import ru.entaxy.platform.core.artifact.ext.features.impl.FeatureInstallerImpl;
|
||||
import ru.entaxy.platform.core.artifact.ext.features.impl.FeaturesInstallerImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.AbstractTypedInstallerFactory;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.TypedInstaller;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.TypedInstallerFactoryDescriptor;
|
||||
|
||||
@TypedInstallerFactoryDescriptor(supportedClasses = {FeaturesInstaller.class, FeatureInstaller.class},
|
||||
supportedTypes = {Artifact.ARTIFACT_CATEGORY_FEATURES, ArtifactExtended.ARTIFACT_CATEGORY_FEATURE})
|
||||
public class ExtTypedInstallerFactory extends AbstractTypedInstallerFactory {
|
||||
|
||||
@Override
|
||||
protected TypedInstaller doCreate(String type) {
|
||||
if (Artifact.ARTIFACT_CATEGORY_FEATURES.equalsIgnoreCase(type)) {
|
||||
return new FeaturesInstallerImpl();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected TypedInstaller doCreate(Class<? extends TypedInstaller> targetClass) {
|
||||
if (FeaturesInstaller.class.equals(targetClass))
|
||||
return new FeaturesInstallerImpl();
|
||||
if (FeatureInstaller.class.equals(targetClass))
|
||||
return new FeatureInstallerImpl();
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext;
|
||||
|
||||
public interface SequenceSupport<T> {
|
||||
|
||||
T inSequence(String sequenceId);
|
||||
|
||||
}
|
@ -0,0 +1,135 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.binary;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.DefaultArtifact;
|
||||
|
||||
/**
|
||||
* Allowed content types: InputStream, File, byte[]
|
||||
*/
|
||||
public abstract class AbstractBinaryArtifact extends DefaultArtifact {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbstractBinaryArtifact.class);
|
||||
|
||||
@Override
|
||||
public void setContent(Object content) {
|
||||
super.setContent(content);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toFile(File destination) {
|
||||
if (content == null)
|
||||
return;
|
||||
|
||||
if (content instanceof File) {
|
||||
try {
|
||||
Files.copy(((File) content).getAbsoluteFile().toPath(), destination.getAbsoluteFile().toPath(),
|
||||
StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (IOException e) {
|
||||
LOG.error("Error saving file", e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (content instanceof InputStream) {
|
||||
try {
|
||||
InputStream is = (InputStream) content;
|
||||
if (is.markSupported()) {
|
||||
is.mark(0);
|
||||
}
|
||||
Files.copy((InputStream) content, destination.getAbsoluteFile().toPath(),
|
||||
StandardCopyOption.REPLACE_EXISTING);
|
||||
if (is.markSupported()) {
|
||||
is.reset();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOG.error("Error saving file", e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (content instanceof byte[]) {
|
||||
try (InputStream is = new ByteArrayInputStream((byte[]) content)) {
|
||||
Files.copy(is, destination.getAbsoluteFile().toPath(),
|
||||
StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (IOException e) {
|
||||
LOG.error("Error saving file", e);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
super.toFile(destination);
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] asByteArray() {
|
||||
if (content == null)
|
||||
return new byte[0];
|
||||
|
||||
if (content instanceof byte[])
|
||||
return (byte[]) content;
|
||||
|
||||
if (content instanceof InputStream)
|
||||
try {
|
||||
byte[] byteArray;
|
||||
InputStream is = (InputStream) content;
|
||||
if (is.markSupported()) {
|
||||
is.mark(0);
|
||||
}
|
||||
byteArray = IOUtils.toByteArray(is);
|
||||
if (is.markSupported()) {
|
||||
is.reset();
|
||||
}
|
||||
return byteArray;
|
||||
} catch (IOException e) {
|
||||
LOG.error("Error getting bytes", e);
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
if (content instanceof File)
|
||||
try (InputStream is = new FileInputStream((File) content)) {
|
||||
return IOUtils.toByteArray(is);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error getting bytes", e);
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
return super.asByteArray();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.binary;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.Artifact;
|
||||
import ru.entaxy.platform.core.artifact.annotation.ArtifactSupport;
|
||||
|
||||
@ArtifactSupport(supportedCategory = Artifact.ARTIFACT_CATEGORY_JAR,
|
||||
supportedContentClasses = {File.class, InputStream.class, byte[].class},
|
||||
defaultArtifactType = "jar")
|
||||
public class JarArtifact extends AbstractBinaryArtifact {
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.binary;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.annotation.ArtifactSupport;
|
||||
import ru.entaxy.platform.core.artifact.ext.ArtifactExtended;
|
||||
|
||||
@ArtifactSupport(supportedCategory = ArtifactExtended.ARTIFACT_CATEGORY_UNTYPED_BINARY,
|
||||
supportedContentClasses = {File.class, InputStream.class, byte[].class},
|
||||
defaultArtifactType = "jar")
|
||||
public class UntypedBinaryArtifact extends AbstractBinaryArtifact {
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.ext.SequenceSupport;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.TypedInstaller;
|
||||
|
||||
public interface FeatureInstaller extends TypedInstaller, SequenceSupport<FeatureInstaller> {
|
||||
|
||||
public interface FeatureInstallDescriptor extends TypedInstaller {
|
||||
|
||||
FeatureInstallDescriptor version(String version);
|
||||
|
||||
FeatureInstallDescriptor noRefresh();
|
||||
|
||||
FeatureInstallDescriptor noStart();
|
||||
|
||||
FeatureInstallDescriptor noManage();
|
||||
|
||||
FeatureInstallDescriptor upgrade();
|
||||
|
||||
|
||||
FeatureInstallDescriptor feature(String name);
|
||||
}
|
||||
|
||||
FeatureInstallDescriptor feature(String name);
|
||||
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
import ru.entaxy.platform.base.support.xml.CommonXMLUtils;
|
||||
import ru.entaxy.platform.core.artifact.Artifact;
|
||||
import ru.entaxy.platform.core.artifact.annotation.ArtifactSupport;
|
||||
import ru.entaxy.platform.core.artifact.ext.binary.AbstractBinaryArtifact;
|
||||
|
||||
@ArtifactSupport(supportedCategory = Artifact.ARTIFACT_CATEGORY_FEATURES,
|
||||
supportedContentClasses = {File.class, InputStream.class, byte[].class, Document.class, String.class},
|
||||
defaultArtifactType = "xml")
|
||||
public class FeaturesArtifact extends AbstractBinaryArtifact {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FeaturesArtifact.class);
|
||||
|
||||
@Override
|
||||
public void toFile(File destination) {
|
||||
if (content == null)
|
||||
return;
|
||||
|
||||
if (content instanceof Document) {
|
||||
String data = null;
|
||||
try {
|
||||
data = CommonXMLUtils.doc2string((Document) content);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error converting Document to String for artifact [" + getCoordinates().toMavenString() + "]",
|
||||
e);
|
||||
return;
|
||||
}
|
||||
try (InputStream is = new ByteArrayInputStream(data.getBytes())) {
|
||||
Files.copy(is, destination.getAbsoluteFile().toPath(),
|
||||
StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error saving to file for artifact [" + getCoordinates().toMavenString() + "]", e);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
super.toFile(destination);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.ext.SequenceSupport;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.TypedInstaller;
|
||||
|
||||
public interface FeaturesInstaller extends TypedInstaller, SequenceSupport<FeaturesInstaller> {
|
||||
|
||||
FeaturesInstaller installAllFeatures();
|
||||
|
||||
FeaturesInstaller refresh();
|
||||
|
||||
FeaturesInstaller installFeatures(String... features);
|
||||
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.karaf.cellar.features.management.CellarFeaturesMBean;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import ru.entaxy.platform.base.support.CommonUtils;
|
||||
import ru.entaxy.platform.base.support.osgi.OSGIUtils;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.cluster.ClusterTypedInstallerHelper;
|
||||
import ru.entaxy.platform.runtime.cellar.sequence.CellarSequenceManager;
|
||||
|
||||
public class CellarFeaturesInstallerHelper extends ClusterTypedInstallerHelper
|
||||
implements FeaturesInstallerConfigurableHelper {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(CellarFeaturesInstallerHelper.class);
|
||||
|
||||
protected FeaturesInstallerHelperConfig config;
|
||||
|
||||
public FeaturesInstallerHelperConfig getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setConfig(FeaturesInstallerHelperConfig config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
protected CellarFeaturesMBean getFeaturesService() throws Exception {
|
||||
if (CommonUtils.isValid(config.getSequenceId())) {
|
||||
CellarSequenceManager seqManager =
|
||||
OSGIUtils.services().ofClass(CellarSequenceManager.class).waitService(2000).get();
|
||||
|
||||
return seqManager.getSequencedHelper(config.getSequenceId(), CellarFeaturesMBean.class);
|
||||
|
||||
}
|
||||
return OSGIUtils.services().ofClass(CellarFeaturesMBean.class).waitService(2000).get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl install(InstallationResultImpl installationResult) {
|
||||
CellarFeaturesMBean featuresService;
|
||||
try {
|
||||
featuresService = getFeaturesService();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error getting CellarFeaturesMBean service", e);
|
||||
return installationResult.failed("Error getting CellarFeaturesMBean service").error(e);
|
||||
}
|
||||
|
||||
List<String> groupsToInstall = new ArrayList<>();
|
||||
for (String groupName : getGroups())
|
||||
if (checkGroup(groupName))
|
||||
if (!groupsToInstall.contains(groupName))
|
||||
groupsToInstall.add(groupName);
|
||||
|
||||
if (groupsToInstall.size() == 0) {
|
||||
return installationResult.failed("No groups to install to");
|
||||
}
|
||||
|
||||
// TODO decide if we really need several groups
|
||||
// now we use only the first one
|
||||
String groupToInstall = groupsToInstall.get(0);
|
||||
|
||||
String repositoryUrl = config.getSourceLocation();
|
||||
if (repositoryUrl.indexOf(':') < 0)
|
||||
repositoryUrl = "mvn:" + repositoryUrl;
|
||||
|
||||
try {
|
||||
if (featuresService.getRepositories(groupToInstall).contains(repositoryUrl)) {
|
||||
if (config.isRefresh())
|
||||
featuresService.refreshRepository(groupToInstall, repositoryUrl);
|
||||
} else {
|
||||
featuresService.addRepository(groupToInstall, repositoryUrl, null, config.isInstallAllFetures());
|
||||
}
|
||||
|
||||
if (!config.isInstallAllFetures())
|
||||
for (String feature : config.getFeaturesToInstall())
|
||||
featuresService.installFeature(groupToInstall, feature);
|
||||
|
||||
return installationResult.installed();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error installing repository [" + repositoryUrl + "]", e);
|
||||
return installationResult.failed("Error installing repository [" + repositoryUrl + "]").error(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl uninstall(InstallationResultImpl installationResult) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,192 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.karaf.cellar.features.management.CellarFeaturesMBean;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import ru.entaxy.platform.base.support.CommonUtils;
|
||||
import ru.entaxy.platform.base.support.osgi.OSGIUtils;
|
||||
import ru.entaxy.platform.core.artifact.ext.features.impl.FeatureInstallerImpl.FeatureInstallDescriptorImpl;
|
||||
import ru.entaxy.platform.core.artifact.ext.impl.ClusterTypedConfigurableHelper;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
import ru.entaxy.platform.runtime.cellar.sequence.CellarSequenceManager;
|
||||
|
||||
public class FeatureInstallerClusterHelper extends ClusterTypedConfigurableHelper<FeatureInstallerImpl>
|
||||
implements FeatureInstallerConfigurableHelper {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(FeatureInstallerClusterHelper.class);
|
||||
|
||||
protected CellarFeaturesMBean getFeaturesService() throws Exception {
|
||||
if (CommonUtils.isValid(config.sequenceId)) {
|
||||
CellarSequenceManager seqManager =
|
||||
OSGIUtils.services().ofClass(CellarSequenceManager.class).waitService(2000).get();
|
||||
|
||||
return seqManager.getSequencedHelper(config.sequenceId, CellarFeaturesMBean.class);
|
||||
|
||||
}
|
||||
return OSGIUtils.services().ofClass(CellarFeaturesMBean.class).waitService(2000).get();
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl install(InstallationResultImpl installationResult) {
|
||||
CellarFeaturesMBean featuresService;
|
||||
try {
|
||||
featuresService = getFeaturesService();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error getting CellarFeaturesMBean service", e);
|
||||
return installationResult.failed("Error getting CellarFeaturesMBean service").error(e);
|
||||
}
|
||||
|
||||
List<String> groupsToInstall = new ArrayList<>();
|
||||
for (String groupName : getGroups())
|
||||
if (checkGroup(groupName))
|
||||
if (!groupsToInstall.contains(groupName))
|
||||
groupsToInstall.add(groupName);
|
||||
|
||||
if (groupsToInstall.size() == 0) {
|
||||
return installationResult.failed("No groups to install to");
|
||||
}
|
||||
|
||||
// TODO decide if we really need several groups
|
||||
// now we use only the first one
|
||||
String groupToInstall = groupsToInstall.get(0);
|
||||
|
||||
boolean hasFailed = false;
|
||||
boolean hasSuccessfull = false;
|
||||
|
||||
|
||||
for (FeatureInstallDescriptorImpl descriptor : config.descriptors.values()) {
|
||||
InstallationResultImpl subResult = InstallationResultImpl.create();
|
||||
subResult.object(descriptor.featureName);
|
||||
try {
|
||||
|
||||
// convert version to OSGI-style version
|
||||
// mj.mn.p-q -> mj.mn.p.q
|
||||
String finalFeatureVersion = descriptor.featureVersion;
|
||||
if (CommonUtils.isValid(finalFeatureVersion)) {
|
||||
finalFeatureVersion = finalFeatureVersion.replace('-', '.');
|
||||
}
|
||||
|
||||
featuresService.installFeature(groupToInstall, descriptor.featureName,
|
||||
finalFeatureVersion,
|
||||
descriptor.noRefresh,
|
||||
descriptor.noStart,
|
||||
descriptor.noManage,
|
||||
descriptor.upgrade);
|
||||
subResult.installed();
|
||||
hasSuccessfull = true;
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error installing repository [" + descriptor.featureName + "]", e);
|
||||
subResult.failed("Error installing feature [" + descriptor.featureName + "]").error(e);
|
||||
hasFailed = true;
|
||||
}
|
||||
installationResult.subResult(subResult);
|
||||
}
|
||||
|
||||
if (!hasFailed)
|
||||
installationResult.installed();
|
||||
else {
|
||||
if (hasSuccessfull) {
|
||||
installationResult.message("HAS FAILED SUBRESULTS");
|
||||
installationResult.installed();
|
||||
} else {
|
||||
installationResult.failed();
|
||||
}
|
||||
}
|
||||
return installationResult;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl uninstall(InstallationResultImpl installationResult) {
|
||||
CellarFeaturesMBean featuresService;
|
||||
try {
|
||||
featuresService = getFeaturesService();
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error getting CellarFeaturesMBean service", e);
|
||||
return installationResult.failed("Error getting CellarFeaturesMBean service").error(e);
|
||||
}
|
||||
|
||||
List<String> groupsToUninstall = new ArrayList<>();
|
||||
for (String groupName : getGroups())
|
||||
if (checkGroup(groupName))
|
||||
if (!groupsToUninstall.contains(groupName))
|
||||
groupsToUninstall.add(groupName);
|
||||
|
||||
if (groupsToUninstall.size() == 0) {
|
||||
return installationResult.failed("No groups to uninstall from");
|
||||
}
|
||||
|
||||
// TODO decide if we really need several groups
|
||||
// now we use only the first one
|
||||
String groupToUninstall = groupsToUninstall.get(0);
|
||||
|
||||
boolean hasFailed = false;
|
||||
boolean hasSuccessfull = false;
|
||||
|
||||
|
||||
for (FeatureInstallDescriptorImpl descriptor : config.descriptors.values()) {
|
||||
InstallationResultImpl subResult = InstallationResultImpl.create();
|
||||
subResult.object(descriptor.featureName);
|
||||
try {
|
||||
|
||||
// convert version to OSGI-style version
|
||||
// mj.mn.p-q -> mj.mn.p.q
|
||||
String finalFeatureVersion = descriptor.featureVersion;
|
||||
if (CommonUtils.isValid(finalFeatureVersion)) {
|
||||
finalFeatureVersion = finalFeatureVersion.replace('-', '.');
|
||||
}
|
||||
|
||||
featuresService.uninstallFeature(groupToUninstall, descriptor.featureName, finalFeatureVersion,
|
||||
descriptor.noRefresh);
|
||||
subResult.uninstalled();
|
||||
hasSuccessfull = true;
|
||||
} catch (Exception e) {
|
||||
LOG.error("Error uninstalling repository [" + descriptor.featureName + "]", e);
|
||||
subResult.failed("Error uninstalling feature [" + descriptor.featureName + "]").error(e);
|
||||
hasFailed = true;
|
||||
}
|
||||
installationResult.subResult(subResult);
|
||||
}
|
||||
|
||||
if (!hasFailed)
|
||||
installationResult.uninstalled();
|
||||
else {
|
||||
if (hasSuccessfull) {
|
||||
installationResult.message("HAS FAILED SUBRESULTS");
|
||||
installationResult.uninstalled();
|
||||
} else {
|
||||
installationResult.failed();
|
||||
}
|
||||
}
|
||||
return installationResult;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.ext.impl.InstallerConfigurableHelper;
|
||||
|
||||
public interface FeatureInstallerConfigurableHelper extends InstallerConfigurableHelper<FeatureInstallerImpl> {
|
||||
|
||||
@Override
|
||||
default Class<FeatureInstallerImpl> getConfigClass() {
|
||||
return FeatureInstallerImpl.class;
|
||||
}
|
||||
}
|
@ -0,0 +1,172 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.DeployedArtifact;
|
||||
import ru.entaxy.platform.core.artifact.ext.features.FeatureInstaller;
|
||||
import ru.entaxy.platform.core.artifact.ext.impl.ExtendedTypedInstallerImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.InstallationResult;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerHelperImpl;
|
||||
|
||||
public class FeatureInstallerImpl
|
||||
extends ExtendedTypedInstallerImpl<FeatureInstallerConfigurableHelper, FeatureInstallerImpl>
|
||||
implements FeatureInstaller {
|
||||
|
||||
protected static class FeatureInstallDescriptorImpl implements FeatureInstallDescriptor {
|
||||
|
||||
FeatureInstallerImpl featureInstaller;
|
||||
|
||||
String featureName;
|
||||
String featureVersion;
|
||||
|
||||
boolean noStart = false;
|
||||
boolean noRefresh = false;
|
||||
boolean noManage = false;
|
||||
boolean upgrade = false;
|
||||
|
||||
protected FeatureInstallDescriptorImpl(FeatureInstallerImpl featureInstaller, String name) {
|
||||
this.featureInstaller = featureInstaller;
|
||||
this.featureName = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearInstaller() {
|
||||
featureInstaller.clearInstaller();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSourceLocation(String sourceLocation) {}
|
||||
|
||||
@Override
|
||||
public String getSourceLocation() {
|
||||
return featureInstaller.getSourceLocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setArtifact(DeployedArtifact artifact) {
|
||||
featureInstaller.setArtifact(artifact);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeployedArtifact getArtifact() {
|
||||
return featureInstaller.getArtifact();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTypedName() {
|
||||
return featureInstaller.getTypedName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTypedName(String typedName) {
|
||||
featureInstaller.setTypedName(typedName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResult install() {
|
||||
return featureInstaller.install();
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResult uninstall() {
|
||||
return featureInstaller.uninstall();
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor version(String version) {
|
||||
this.featureVersion = version;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor noRefresh() {
|
||||
this.noRefresh = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor noStart() {
|
||||
this.noStart = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor noManage() {
|
||||
this.noManage = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor upgrade() {
|
||||
this.upgrade = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor feature(String name) {
|
||||
return featureInstaller.feature(name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected final Map<String, FeatureInstallDescriptorImpl> descriptors = new HashMap<>();
|
||||
|
||||
protected String sequenceId = null;
|
||||
|
||||
@Override
|
||||
public FeatureInstaller inSequence(String sequenceId) {
|
||||
this.sequenceId = sequenceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeatureInstallDescriptor feature(String name) {
|
||||
if (descriptors.containsKey(name))
|
||||
return descriptors.get(name);
|
||||
FeatureInstallDescriptorImpl descriptor = new FeatureInstallDescriptorImpl(this, name);
|
||||
descriptors.put(name, descriptor);
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<FeatureInstallerConfigurableHelper> getHelperClass() {
|
||||
return FeatureInstallerConfigurableHelper.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <H extends TypedInstallerHelperImpl> H createClusterHelper(Class<H> targetClass) {
|
||||
return (H) new FeatureInstallerClusterHelper();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <H extends TypedInstallerHelperImpl> H createLocalHelper(Class<H> targetClass) {
|
||||
return (H) new FeatureInstallerLocalHelper();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.ext.impl.LocalTypedConfigurableHelper;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
|
||||
public class FeatureInstallerLocalHelper extends LocalTypedConfigurableHelper<FeatureInstallerImpl>
|
||||
implements FeatureInstallerConfigurableHelper {
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl install(InstallationResultImpl installationResult) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl uninstall(InstallationResultImpl installationResult) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
|
||||
public interface FeaturesInstallerConfigurableHelper {
|
||||
|
||||
void setConfig(FeaturesInstallerHelperConfig config);
|
||||
|
||||
public InstallationResultImpl install(InstallationResultImpl installationResult);
|
||||
|
||||
public InstallationResultImpl uninstall(InstallationResultImpl installationResult);
|
||||
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface FeaturesInstallerHelperConfig {
|
||||
|
||||
boolean isRefresh();
|
||||
|
||||
boolean isInstallAllFetures();
|
||||
|
||||
List<String> getFeaturesToInstall();
|
||||
|
||||
String getSourceLocation();
|
||||
|
||||
String getSequenceId();
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerHelperImpl;
|
||||
|
||||
public abstract class FeaturesInstallerHelperImpl extends TypedInstallerHelperImpl
|
||||
implements FeaturesInstallerConfigurableHelper {
|
||||
|
||||
protected FeaturesInstallerHelperConfig config;
|
||||
|
||||
public FeaturesInstallerHelperConfig getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setConfig(FeaturesInstallerHelperConfig config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,133 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.ext.features.FeaturesInstaller;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.InstallationResult;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.cluster.ClusterTypedInstallerHelper;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.HelperCreator;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerHelperImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerImpl;
|
||||
|
||||
public class FeaturesInstallerImpl extends TypedInstallerImpl
|
||||
implements FeaturesInstaller, HelperCreator, FeaturesInstallerHelperConfig {
|
||||
|
||||
protected boolean isInstallAllFeatures = false;
|
||||
|
||||
protected boolean isRefresh = false;
|
||||
|
||||
protected List<String> featuresToInstall = new ArrayList<>();
|
||||
|
||||
protected FeaturesInstallerConfigurableHelper featuresHelper;
|
||||
|
||||
protected String sequenceId = null;
|
||||
|
||||
@Override
|
||||
public FeaturesInstaller inSequence(String sequenceId) {
|
||||
this.sequenceId = sequenceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResult install() {
|
||||
InstallationResultImpl result = InstallationResultImpl.create();
|
||||
if (this.featuresHelper == null)
|
||||
result.failed("HELPER NOT FOUND");
|
||||
else
|
||||
this.featuresHelper.install(result);
|
||||
return result.property("artifact", this.artifact);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResult uninstall() {
|
||||
InstallationResultImpl result = InstallationResultImpl.create();
|
||||
if (this.featuresHelper == null)
|
||||
result.failed("HELPER NOT FOUND");
|
||||
else
|
||||
this.featuresHelper.uninstall(result);
|
||||
return result.property("artifact", this.artifact);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setHelper(TypedInstallerHelperImpl helper) {
|
||||
if (helper instanceof FeaturesInstallerConfigurableHelper) {
|
||||
featuresHelper = (FeaturesInstallerConfigurableHelper) helper;
|
||||
featuresHelper.setConfig(this);
|
||||
}
|
||||
super.setHelper(helper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeaturesInstaller installAllFeatures() {
|
||||
isInstallAllFeatures = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeaturesInstaller installFeatures(String... features) {
|
||||
if (features != null)
|
||||
this.featuresToInstall = new ArrayList<>(Arrays.asList(features));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <H extends TypedInstallerHelperImpl> H createHelper(Class<H> targetClass) {
|
||||
if (ClusterTypedInstallerHelper.class.isAssignableFrom(targetClass))
|
||||
return (H) new CellarFeaturesInstallerHelper();
|
||||
return (H) new LocalFeaturesInstallerHelper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public FeaturesInstaller refresh() {
|
||||
isRefresh = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRefresh() {
|
||||
return isRefresh;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInstallAllFetures() {
|
||||
return isInstallAllFeatures;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getFeaturesToInstall() {
|
||||
return featuresToInstall;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSequenceId() {
|
||||
return sequenceId;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.features.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
|
||||
public class LocalFeaturesInstallerHelper extends FeaturesInstallerHelperImpl {
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl install(InstallationResultImpl installationResult) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResultImpl uninstall(InstallationResultImpl installationResult) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.cluster.ClusterTypedInstallerHelper;
|
||||
|
||||
public abstract class ClusterTypedConfigurableHelper<T> extends ClusterTypedInstallerHelper
|
||||
implements InstallerConfigurableHelper<T> {
|
||||
|
||||
protected T config;
|
||||
|
||||
@Override
|
||||
public void setConfig(T config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.InstallationResult;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.cluster.ClusterTypedInstallerHelper;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.HelperCreator;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerHelperImpl;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerImpl;
|
||||
|
||||
public abstract class ExtendedTypedInstallerImpl<S extends InstallerConfigurableHelper<T>, T> extends TypedInstallerImpl
|
||||
implements HelperCreator {
|
||||
|
||||
protected S localTypedHelper;
|
||||
|
||||
protected abstract Class<S> getHelperClass();
|
||||
|
||||
@Override
|
||||
public InstallationResult install() {
|
||||
InstallationResultImpl result = InstallationResultImpl.create();
|
||||
if (localTypedHelper == null)
|
||||
result.failed("HELPER NOT FOUND");
|
||||
else
|
||||
result = localTypedHelper.install(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InstallationResult uninstall() {
|
||||
InstallationResultImpl result = InstallationResultImpl.create();
|
||||
if (localTypedHelper == null)
|
||||
result.failed("HELPER NOT FOUND");
|
||||
else
|
||||
result = localTypedHelper.uninstall(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setHelper(TypedInstallerHelperImpl helper) {
|
||||
if (getHelperClass().isInstance(helper)) {
|
||||
this.localTypedHelper = (S) helper;
|
||||
if (localTypedHelper.getConfigClass().isAssignableFrom(getClass()))
|
||||
localTypedHelper.setConfig((T) this);
|
||||
}
|
||||
super.setHelper(helper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <H extends TypedInstallerHelperImpl> H createHelper(Class<H> targetClass) {
|
||||
if (ClusterTypedInstallerHelper.class.isAssignableFrom(targetClass))
|
||||
return (H) createClusterHelper(targetClass);
|
||||
return (H) createLocalHelper(targetClass);
|
||||
}
|
||||
|
||||
protected abstract <H extends TypedInstallerHelperImpl> H createClusterHelper(Class<H> targetClass);
|
||||
|
||||
protected abstract <H extends TypedInstallerHelperImpl> H createLocalHelper(Class<H> targetClass);
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.impl.InstallationResultImpl;
|
||||
|
||||
public interface InstallerConfigurableHelper<T> {
|
||||
|
||||
void setConfig(T config);
|
||||
|
||||
Class<T> getConfigClass();
|
||||
|
||||
public InstallationResultImpl install(InstallationResultImpl installationResult);
|
||||
|
||||
public InstallationResultImpl uninstall(InstallationResultImpl installationResult);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.impl;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.impl.TypedInstallerHelperImpl;
|
||||
|
||||
public abstract class LocalTypedConfigurableHelper<T> extends TypedInstallerHelperImpl
|
||||
implements InstallerConfigurableHelper<T> {
|
||||
|
||||
protected T config;
|
||||
|
||||
@Override
|
||||
public void setConfig(T config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
/*-
|
||||
* ~~~~~~licensing~~~~~~
|
||||
* artifact-management-extensions
|
||||
* ==========
|
||||
* Copyright (C) 2020 - 2024 EmDev LLC
|
||||
* ==========
|
||||
* You may not use this file except in accordance with the License Terms of the Copyright
|
||||
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
|
||||
* rights to the Software and any copies are the property of the Copyright Holder. Unless
|
||||
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
|
||||
* Software for commercial purposes to provide services to third parties.
|
||||
*
|
||||
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
|
||||
* Under no circumstances does the Copyright Holder guarantee or promise that the
|
||||
* Software provided by him will be suitable or not suitable for the specific purposes
|
||||
* of the User, that the Software will meet all commercial and personal subjective
|
||||
* expectations of the User, that the Software will work properly, without technical
|
||||
* errors, quickly and uninterruptedly.
|
||||
*
|
||||
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
|
||||
* to the User for any direct or indirect losses of the User, his expenses or actual
|
||||
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
|
||||
* or damage to data, property, etc.
|
||||
* ~~~~~~/licensing~~~~~~
|
||||
*/
|
||||
package ru.entaxy.platform.core.artifact.ext.internal;
|
||||
|
||||
import org.osgi.service.component.annotations.Activate;
|
||||
import org.osgi.service.component.annotations.Component;
|
||||
import org.osgi.service.component.annotations.Reference;
|
||||
import org.osgi.service.component.annotations.ReferenceCardinality;
|
||||
|
||||
import ru.entaxy.platform.core.artifact.Artifacts;
|
||||
import ru.entaxy.platform.core.artifact.ext.ExtTypedInstallerFactory;
|
||||
import ru.entaxy.platform.core.artifact.ext.binary.JarArtifact;
|
||||
import ru.entaxy.platform.core.artifact.ext.binary.UntypedBinaryArtifact;
|
||||
import ru.entaxy.platform.core.artifact.installer.builder.typed.TypedInstallerManager;
|
||||
import ru.entaxy.platform.core.artifact.service.ArtifactService;
|
||||
|
||||
@Component(service = Registrator.class, immediate = true)
|
||||
public class Registrator {
|
||||
|
||||
@Reference(cardinality = ReferenceCardinality.MANDATORY)
|
||||
ArtifactService artifactService;
|
||||
|
||||
@Activate
|
||||
public void activate() {
|
||||
Artifacts.registerSupport(JarArtifact.class);
|
||||
Artifacts.registerSupport(UntypedBinaryArtifact.class);
|
||||
|
||||
TypedInstallerManager.register(new ExtTypedInstallerFactory());
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user